boost::capy::get_system_context
Return a process‐wide thread pool, creating it on first use.
Synopsis
thread_pool&
get_system_context();
Description
Use it when code needs an execution context but has none of its own, and the program does not want to own a pool. Nothing in the library uses it implicitly.
The pool has one worker thread per hardware thread and is destroyed at program exit. Work must not be posted to it during or after its destruction. Like any thread_pool, it allocates coroutine frames with std::allocator<void> unless execution_context::set_frame_allocator changes that.
Return Value
Reference to the system thread pool singleton.
Created with MrDocs