Helios++
Helios software for LiDAR simulations
|
Base class providing core implementation of a thread pool to deal with multi threading tasks. More...
#include <ThreadPool.h>
Public Member Functions | |
ThreadPool (std::size_t const _pool_size) | |
Thread pool constructor. More... | |
virtual std::size_t | getPoolSize () const |
Obtain the thread pool size. More... | |
Protected Attributes | |
boost::asio::io_service | io_service_ |
Instance of boost input/output service for asynchronous data processing. | |
boost::asio::executor_work_guard< boost::asio::io_service::executor_type > | work_ |
Instance of work guard to report the io service when it has pending tasks. More... | |
std::size_t | pool_size |
Size of thread pool (number of threads) | |
boost::thread_group | threads_ |
Group of threads. | |
Base class providing core implementation of a thread pool to deal with multi threading tasks.
|
inlineexplicit |
Thread pool constructor.
|
inlinevirtual |
|
protected |
Instance of work guard to report the io service when it has pending tasks.