#include <thread_pool.hpp>
Definition at line 13 of file thread_pool.hpp.
◆ ThreadPool() [1/3]
bb::ThreadPool::ThreadPool |
( |
size_t |
num_threads | ) |
|
◆ ThreadPool() [2/3]
bb::ThreadPool::ThreadPool |
( |
const ThreadPool & |
other | ) |
|
|
delete |
◆ ThreadPool() [3/3]
◆ ~ThreadPool()
bb::ThreadPool::~ThreadPool |
( |
| ) |
|
◆ enqueue()
void bb::ThreadPool::enqueue |
( |
const std::function< void()> & |
task | ) |
|
◆ num_threads()
size_t bb::ThreadPool::num_threads |
( |
| ) |
|
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ wait()
void bb::ThreadPool::wait |
( |
| ) |
|
◆ worker_loop()
void bb::ThreadPool::worker_loop |
( |
size_t |
thread_index | ) |
|
|
private |
◆ condition
◆ finished_condition
◆ stop
bool bb::ThreadPool::stop = false |
|
private |
◆ tasks
std::queue<std::function<void()> > bb::ThreadPool::tasks |
|
private |
◆ tasks_mutex
std::mutex bb::ThreadPool::tasks_mutex |
|
private |
◆ tasks_running
std::atomic<size_t> bb::ThreadPool::tasks_running |
|
private |
◆ workers
std::vector<std::thread> bb::ThreadPool::workers |
|
private |
The documentation for this class was generated from the following files: