boost::capy::thread_pool::thread_pool
Construct a thread pool.
Synopses
Declared in <boost/capy/ex/thread_pool.hpp>
Copy constructor
thread_pool(thread_pool const& other) = delete;
Construct a thread pool.
explicit
thread_pool(
std::size_t num_threads = 0,
std::string_view thread_name_prefix = "capy‐pool‐");
Parameters
| Name | Description |
|---|---|
num_threads |
The number of worker threads, or zero for automatic selection. |
thread_name_prefix |
The prefix for worker thread names. Thread names appear as "{prefix}0", "{prefix}1", etc. The prefix is truncated to 12 characters. Defaults to "capy‐pool‐". |
Created with MrDocs