Trivial implementation of a threadpool based on boost::asio methods When initiated, creates a threadpool of n threads (n <= number of cpus). Jobs should be submitted with the templated operator(). When the object is deleted it will wait for all threads to finish.
More...
#include <multithreading.hpp>
Trivial implementation of a threadpool based on boost::asio methods When initiated, creates a threadpool of n threads (n <= number of cpus). Jobs should be submitted with the templated operator(). When the object is deleted it will wait for all threads to finish.
Definition at line 33 of file multithreading.hpp.
ucam::util::TrivialThreadPool::TrivialThreadPool |
( |
std::size_t |
n | ) |
|
|
inline |
ucam::util::TrivialThreadPool::~TrivialThreadPool |
( |
| ) |
|
|
inline |
template<typename F >
void ucam::util::TrivialThreadPool::operator() |
( |
F |
task | ) |
|
|
inline |
The documentation for this class was generated from the following file: