| 
Classes | 
| class | worker | 
| 
Public Member Functions | 
|  | std_thread_pool (size_t no) | 
|  | Constructs a thread pool of no workers. 
 | 
| void | add_workers (size_t no) | 
|  | Adds more workers to the thread pool. 
 | 
| void | destroy () | 
|  | Destroys the thread pool, waiting for worker threads to exit beforehand. 
 | 
| asio::io_service & | io_service () | 
|  | Returns the underlying io_service. 
 | 
| template<class R > | 
| void | enqueue (enqueued_task< R > task) | 
|  | Sends a task to the thread pool for execution. 
 | 
| template<class F > | 
| shared_future< typename std::result_of< F()>::type >
 | enqueue (F f) | 
|  | Sends some callable entity to the thread pool for execution. 
 | 
| 
Friends | 
| class | worker | 
A very simple thread pool based on std::thread or boost::thread. 
This instantiates a `asio::io_service` and a latchable `asio::io_service::work` to keep any threads working until the instance is destructed. 
Definition at line 291 of file afio.hpp.