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

Function start_helper_thread

mysys/kqueue_timers.c:69–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67*/
68
69static int
70start_helper_thread(void)
71{
72 struct kevent kev;
73
74 EV_SET(&kev, 0, EVFILT_USER, EV_ADD, 0, 0, 0);
75
76 if (kevent(kq_fd, &kev, 1, NULL, 0, NULL) < 0)
77 return -1;
78
79 return pthread_create(&thread, NULL, timer_notify_thread, NULL);
80}
81
82
83/**

Callers 1

my_os_timer_init_extFunction · 0.70

Calls 2

keventClass · 0.85
pthread_createFunction · 0.85

Tested by

no test coverage detected