19 #ifndef THREADPOOL_SHUTDOWN_POLICIES_HPP_INCLUDED 20 #define THREADPOOL_SHUTDOWN_POLICIES_HPP_INCLUDED 25 namespace boost {
namespace threadpool
34 template<
typename Pool>
41 pool.terminate_all_workers(
true);
51 template<
typename Pool>
59 pool.terminate_all_workers(
true);
70 template<
typename Pool>
77 pool.terminate_all_workers(
false);
83 #endif // THREADPOOL_SHUTDOWN_POLICIES_HPP_INCLUDED
ShutdownPolicy which waits for the completion of all tasks and the worker termination afterwards...
The namespace threadpool contains a thread pool and related utility classes.
static void shutdown(Pool &pool)
ShutdownPolicy which waits for the completion of all active tasks and the worker termination afterwar...
static void shutdown(Pool &pool)