MCPcopy Create free account
hub / github.com/Amanieu/asyncplusplus / threadpool_wait_handler

Function threadpool_wait_handler

src/threadpool_scheduler.cpp:272–276  ·  view source on GitHub ↗

Wait for a task to complete (for worker threads inside thread pool)

Source from the content-addressed store, hash-verified

270
271// Wait for a task to complete (for worker threads inside thread pool)
272static void threadpool_wait_handler(task_wait_handle wait_task)
273{
274 threadpool_data_wrapper wrapper = get_threadpool_data_wrapper();
275 thread_task_loop(wrapper.owning_threadpool, wrapper.thread_id, wait_task);
276}
277
278// Worker thread main loop
279static void worker_thread(threadpool_data* owning_threadpool, std::size_t thread_id)

Callers

nothing calls this directly

Calls 2

thread_task_loopFunction · 0.85

Tested by

no test coverage detected