MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / set_thread_wait_handler

Function set_thread_wait_handler

3rdparty/asyncplusplus/src/scheduler.cpp:99–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97#endif
98
99static void set_thread_wait_handler(wait_handler handler)
100{
101#if defined(EMULATE_PTHREAD_THREAD_LOCAL)
102 // we need to call this here, because the pthread initializer is lazy,
103 // this means the it could be null and we need to set it before trying to
104 // get or set it
105 pthread_setspecific(get_thread_wait_handler_key(), reinterpret_cast<void*>(handler));
106#else
107 thread_wait_handler = handler;
108#endif
109}
110
111static wait_handler get_thread_wait_handler()
112{

Callers 3

worker_threadFunction · 0.85
mainFunction · 0.85
run_with_wait_handlerMethod · 0.85

Calls 2

get_thread_wait_handlerFunction · 0.85

Tested by

no test coverage detected