libcoro  1.0
Coroutine support library for C++20

◆ thread_pool() [2/2]

template<typename CondVar >
static auto coro::scheduler_t< CondVar >::thread_pool ( unsigned int  threads)
inlinestatic

Create a thread pool for the scheduler.

Parameters
threadscount of threads
Returns
function object, which can be pased to run() or start()
See also
run, start

Definition at line 166 of file scheduler.h.