oa::ThreadPool
ThreadPool struct in the OA Core public surface.
Public Methods
Static Public Methods
Constructor & Destructor Documentation
Public Method Documentation
No public source comment is attached to this declaration.
Returns
const CpuTopology &The declared return value.
No public source comment is attached to this declaration.
Returns
boolThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::I32The declared return value.
Explicit graceful boundary. Stops intake, drains queued jobs, and waits for every worker. Destruction only requests cancellation and never joins.
Returns
voidThe declared return value.
No public source comment is attached to this declaration.
Parameters
inJoboa::Fn<void ()>—
Returns
voidThe declared return value.
No public source comment is attached to this declaration.
Parameters
inFuncF—
Returns
oa::SharedPtr<Task<decltype(inFunc())>>The declared return value.
No public source comment is attached to this declaration.
Parameters
inConfigconst ThreadPoolConfig &Default: {}
Returns
ThreadPoolThe declared return value.