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
You've currently chosen the 1.91.0 version. If a newer release comes out, you will continue to view the 1.91.0 version, not the new latest release.
Constructs a pool with an automatically determined number of threads.
thread_pool(); » more... template< typename Allocator> thread_pool( allocator_arg_t , const Allocator & a); » more...
Constructs a pool with a specified number of threads.
explicit thread_pool( std::size_t num_threads); » more... template< typename Allocator> thread_pool( allocator_arg_t , const Allocator & a, std::size_t num_threads); » more... thread_pool( std::size_t num_threads, const execution_context::service_maker & initial_services); » more... template< typename Allocator> thread_pool( allocator_arg_t , const Allocator & a, std::size_t num_threads, const execution_context::service_maker & initial_services); » more...