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

Function my_os_timer_init_ext

mysys/kqueue_timers.c:90–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88*/
89
90int
91my_os_timer_init_ext(void)
92{
93 int rc;
94
95 /* Create a file descriptor for event notification. */
96 if ((kq_fd= kqueue()) < 0)
97 return -1;
98
99 /* Create a helper thread. */
100 if ((rc= start_helper_thread()))
101 close(kq_fd);
102
103 return rc;
104}
105
106
107/**

Callers

nothing calls this directly

Calls 1

start_helper_threadFunction · 0.70

Tested by

no test coverage detected