Lines Matching refs:timer
44 ParamTimer *timer = (ParamTimer *)v.sival_ptr;
45 PARAM_CHECK(timer != NULL, return, "Invalid timer");
46 if (timer->timeProcessor != NULL) {
47 timer->timeProcessor(timer, timer->context);
65 PARAM_LOGE("Failed to start timer");
71 int ParamTimerCreate(ParamTaskPtr *timer, ProcessTimer process, void *context)
73 PARAM_CHECK(timer != NULL && process != NULL, return -1, "Invalid timer");
75 PARAM_CHECK(paramTimer != NULL, return -1, "Failed to create timer");
86 PARAM_LOGE("Failed to create timer");
90 *timer = paramTimer;
94 int ParamTimerStart(const ParamTaskPtr timer, uint64_t timeout, uint64_t repeat)
96 PARAM_CHECK(timer != NULL, return -1, "Invalid timer");
97 ParamTimer *paramTimer = (ParamTimer *)timer;
100 PARAM_CHECK(ret >= 0, return -1, "Failed to start timer");
104 void ParamTimerClose(ParamTaskPtr timer)
106 PARAM_CHECK(timer != NULL, return, "Invalid timer");
107 ParamTimer *paramTimer = (ParamTimer *)timer;