Constructs a pool with a specified number of threads.
thread_pool( std::size_t num_threads);
The number of threads required.