Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This version of Boost is under active development. You are currently in the develop branch. The current version is 1.91.0.
Constructs a pool with a specified number of threads.
template< typename Allocator> thread_pool( allocator_arg_t , const Allocator & a, std::size_t num_threads);
The number of threads required.
An allocator that will be used for allocating objects that are associated with the execution context, such as services and internal state for I/O objects.