Lines Matching refs:idle
27 * @brief Add a new idle handler
29 * @param loopHandle the running loop this idle will be attached
30 * @param idle optional output parameter for the created idle handler
31 * @param processIdle the idle handler function
32 * @param context optional idle handler context
33 * @param repeat if the idle function will be repeated forevent (non zero) or once (zero)
36 LE_STATUS LE_AddIdle(const LoopHandle loopHandle, IdleHandle *idle,
48 if (idle != NULL) {
49 *idle = (IdleHandle)task;
58 * @brief Delete an idle handler
60 * @param idle idle handler
63 void LE_DelIdle(IdleHandle idle)
65 LE_CHECK(idle != NULL, return, "Invalid parameters");
66 IdleTask *task = (IdleTask *)idle;
74 * @param loopHandle the running loop this idle will be attached
75 * @param idle the function to be executed
76 * @param context optional idle handler context
79 int LE_DelayProc(const LoopHandle loopHandle, LE_ProcessIdle idle, void *context)
81 return LE_AddIdle(loopHandle, NULL, idle, context, 0);
88 // Do idle proc
101 * @brief Execute all idle functions