Lines Matching refs:paramTimer
57 static int StartTimer(const ParamTimer *paramTimer, int64_t whenMsec, int64_t repeat)
63 int32_t ret = timer_settime(paramTimer->timerId, 0, &ts, NULL);
74 ParamTimer *paramTimer = malloc(sizeof(ParamTimer));
75 PARAM_CHECK(paramTimer != NULL, return -1, "Failed to create timer");
76 paramTimer->timeProcessor = process;
77 paramTimer->context = context;
81 evp.sigev_value.sival_ptr = paramTimer;
84 int32_t ret = timer_create(CLOCK_REALTIME, &evp, ¶mTimer->timerId);
87 free(paramTimer);
90 *timer = paramTimer;
97 ParamTimer *paramTimer = (ParamTimer *)timer;
99 int32_t ret = StartTimer(paramTimer, timeout, repeat);
107 ParamTimer *paramTimer = (ParamTimer *)timer;
108 timer_delete(paramTimer->timerId);
109 free(paramTimer);