¡@

Home 

c++ Programming Glossary: thread_pool

Thread pool using boost asio

http://stackoverflow.com/questions/12215395/thread-pool-using-boost-asio

#include boost asio.hpp #include boost thread.hpp class thread_pool private boost asio io_service io_service_ boost asio io_service.. available_ boost mutex mutex_ public @brief Constructor. thread_pool std size_t pool_size work_ io_service_ available_ pool_size.. asio io_service run io_service_ @brief Destructor. ~thread_pool Force all threads to return from io_service run . io_service_.stop..