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

Function my_os_timer_deinit

mysys/kqueue_timers.c:111–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109*/
110
111void
112my_os_timer_deinit(void)
113{
114 struct kevent kev;
115
116 EV_SET(&kev, 0, EVFILT_USER, 0, NOTE_TRIGGER, 0, 0);
117
118 /* There's not much to do if triggering the event fails. */
119 if (kevent(kq_fd, &kev, 1, NULL, 0, NULL) > -1)
120 pthread_join(thread, NULL);
121
122 close(kq_fd);
123}
124
125
126/**

Callers

nothing calls this directly

Calls 2

keventClass · 0.85
pthread_joinFunction · 0.85

Tested by

no test coverage detected