MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / my_os_timer_set

Function my_os_timer_set

mysys/kqueue_timers.c:156–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154*/
155
156int
157my_os_timer_set(my_timer_t *timer, unsigned long time)
158{
159 struct kevent kev;
160
161 EV_SET(&kev, timer->id, EVFILT_TIMER, EV_ADD | EV_ONESHOT, 0, time, timer);
162
163 return kevent(kq_fd, &kev, 1, NULL, 0, NULL);
164}
165
166
167/**

Callers

nothing calls this directly

Calls 1

keventClass · 0.85

Tested by

no test coverage detected