#include <ThreadPool.hpp>
◆ ThreadPool() [1/2]
| orbit::concurrency::ThreadPool::ThreadPool |
( |
size_t |
num_threads | ) |
|
|
explicit |
◆ ~ThreadPool()
| orbit::concurrency::ThreadPool::~ThreadPool |
( |
| ) |
|
◆ ThreadPool() [2/2]
| orbit::concurrency::ThreadPool::ThreadPool |
( |
const ThreadPool & |
| ) |
|
|
delete |
◆ enqueue()
| void orbit::concurrency::ThreadPool::enqueue |
( |
std::function< void()> |
task | ) |
|
◆ operator=()
◆ worker_loop()
| void orbit::concurrency::ThreadPool::worker_loop |
( |
| ) |
|
|
private |
◆ condition_
| std::condition_variable orbit::concurrency::ThreadPool::condition_ |
|
private |
◆ queue_mutex_
| std::mutex orbit::concurrency::ThreadPool::queue_mutex_ |
|
private |
◆ stop_
| std::atomic<bool> orbit::concurrency::ThreadPool::stop_ {false} |
|
private |
◆ tasks_
| std::queue<std::function<void()> > orbit::concurrency::ThreadPool::tasks_ |
|
private |
◆ workers_
| std::vector<std::thread> orbit::concurrency::ThreadPool::workers_ |
|
private |
The documentation for this class was generated from the following file: