#include <thread_pool.hpp>
|
std::atomic< bool > | paused = false |
|
◆ thread_pool()
thread_pool::thread_pool |
( |
const concurrency_t |
thread_count_ = std::thread::hardware_concurrency() | ) |
|
|
inlineexplicit |
◆ ~thread_pool()
thread_pool::~thread_pool |
( |
| ) |
|
|
inline |
◆ get_tasks_queued()
size_t thread_pool::get_tasks_queued |
( |
| ) |
const |
|
inline |
◆ get_tasks_running()
size_t thread_pool::get_tasks_running |
( |
| ) |
const |
|
inline |
◆ get_tasks_total()
size_t thread_pool::get_tasks_total |
( |
| ) |
const |
|
inline |
◆ get_thread_count()
concurrency_t thread_pool::get_thread_count |
( |
| ) |
const |
|
inline |
◆ push_task()
template<typename F , typename... A>
void thread_pool::push_task |
( |
const F & |
task, |
|
|
const A &... |
args |
|
) |
| |
|
inline |
◆ reset()
void thread_pool::reset |
( |
const concurrency_t |
thread_count_ = std::thread::hardware_concurrency() | ) |
|
|
inline |
◆ submit()
template<typename F , typename... A, typename R = std::invoke_result_t<std::decay_t<F>, std::decay_t<A>...>>
std::future< R > thread_pool::submit |
( |
const F & |
task, |
|
|
const A &... |
args |
|
) |
| |
|
inline |
◆ wait_for_tasks()
void thread_pool::wait_for_tasks |
( |
| ) |
|
|
inline |
◆ paused
std::atomic<bool> thread_pool::paused = false |
The documentation for this class was generated from the following file: