a simple thread pool
More...
#include <thread_pool.h>
|
| template<class F, class... Args> |
| auto | enqueue (F &&f, Args &&... args) -> std::future< typename std::result_of< F(Args...)>::type > |
| void | start (std::size_t N=1) |
| void | abort () |
| void | cancel_pending () |
| void | finish () |
|
| std::mutex | m |
| std::condition_variable | v |
| std::deque< std::packaged_task< void()> > | work |
| std::vector< std::future< void > > | finished |
a simple thread pool
Definition at line 33 of file thread_pool.h.
◆ ~thread_pool()
| util::thread_pool::~thread_pool |
( |
| ) |
|
|
inline |
◆ abort()
| void util::thread_pool::abort |
( |
| ) |
|
|
inline |
◆ cancel_pending()
| void util::thread_pool::cancel_pending |
( |
| ) |
|
|
inline |
◆ enqueue()
template<class F, class... Args>
| auto util::thread_pool::enqueue |
( |
F && | f, |
|
|
Args &&... | args )->std::future< typenamestd::result_of< F(Args...)>::type > |
|
inline |
◆ finish()
| void util::thread_pool::finish |
( |
| ) |
|
|
inline |
◆ start()
| void util::thread_pool::start |
( |
std::size_t | N = 1 | ) |
|
|
inline |
◆ finished
| std::vector<std::future<void> > util::thread_pool::finished |
| std::mutex util::thread_pool::m |
| std::condition_variable util::thread_pool::v |
◆ work
| std::deque<std::packaged_task<void()> > util::thread_pool::work |
The documentation for this struct was generated from the following file:
- /home/eyck/Projects/MINRES/SystemC-Components/src/common/util/thread_pool.h