MCPcopy Create free account
hub / github.com/apache/brpc / get_or_create_global_timer_thread

Function get_or_create_global_timer_thread

src/bthread/timer_thread.cpp:484–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482 }
483}
484TimerThread* get_or_create_global_timer_thread() {
485 pthread_once(&g_timer_thread_once, init_global_timer_thread);
486 return g_timer_thread;
487}
488TimerThread* get_global_timer_thread() {
489 return g_timer_thread;
490}

Callers 2

initMethod · 0.85
bthread_timer_addFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected