#include <thread_pool.h>
Definition at line 31 of file thread_pool.h.
◆ ThreadPool()
| PBD::ThreadPool::ThreadPool |
( |
size_t |
num_threads | ) |
|
|
inline |
◆ ~ThreadPool()
| PBD::ThreadPool::~ThreadPool |
( |
| ) |
|
|
inline |
◆ push()
| void PBD::ThreadPool::push |
( |
std::function< void()> |
task | ) |
|
|
inline |
◆ _queue
| std::queue<std::function<void ()> > PBD::ThreadPool::_queue |
|
private |
◆ _queue_lock
| std::mutex PBD::ThreadPool::_queue_lock |
|
private |
◆ _run
| bool PBD::ThreadPool::_run |
|
private |
◆ _threads
| std::vector<std::thread> PBD::ThreadPool::_threads |
|
private |
◆ _trigger
| std::condition_variable PBD::ThreadPool::_trigger |
|
private |
The documentation for this class was generated from the following file: