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

Function wait_for_task

src/scheduler.cpp:128–133  ·  view source on GitHub ↗

Wait for a task to complete

Source from the content-addressed store, hash-verified

126
127// Wait for a task to complete
128void wait_for_task(task_base* wait_task)
129{
130 // Dispatch to the current thread's wait handler
131 wait_handler thread_wait_handler = get_thread_wait_handler();
132 thread_wait_handler(task_wait_handle(wait_task));
133}
134
135// The default scheduler is just a thread pool which can be configured
136// using environment variables.

Callers 1

waitFunction · 0.85

Calls 2

get_thread_wait_handlerFunction · 0.85
task_wait_handleClass · 0.85

Tested by

no test coverage detected