Lines Matching refs:timer
124 int ParamTimerCreate(ParamTaskPtr *timer, ProcessTimer process, void *context)
126 PARAM_CHECK(timer != NULL && process != NULL, return -1, "Invalid timer");
127 LE_STATUS status = LE_CreateTimer(LE_GetDefaultLoop(), timer, (LE_ProcessTimer)process, context);
131 int ParamTimerStart(const ParamTaskPtr timer, uint64_t timeout, uint64_t repeat)
133 PARAM_CHECK(timer != NULL, return -1, "Invalid timer");
134 return LE_StartTimer(LE_GetDefaultLoop(), timer, timeout, repeat);
137 void ParamTimerClose(ParamTaskPtr timer)
139 PARAM_CHECK(timer != NULL, return, "Invalid param");
140 LE_CloseTask(LE_GetDefaultLoop(), (ParamTaskPtr)timer);