#include <pool.h>
|
using | Proc = std::function< void(void)> |
|
|
| thread_pool (unsigned int queueDepth=std::thread::hardware_concurrency(), size_t threads=std::thread::hardware_concurrency()) |
|
| ~thread_pool () noexcept |
|
template<typename F , typename... Args> |
void | enqueue_work (F &&f, Args &&... args) |
|
template<typename F , typename... Args> |
auto | enqueue_task (F &&f, Args &&... args) -> std::future< typename std::result_of< F(Args...)>::type > |
|
Definition at line 13 of file pool.h.
◆ Proc
◆ thread_pool()
thread_pool::thread_pool |
( |
unsigned int |
queueDepth = std::thread::hardware_concurrency() , |
|
|
size_t |
threads = std::thread::hardware_concurrency() |
|
) |
| |
|
inline |
◆ ~thread_pool()
thread_pool::~thread_pool |
( |
| ) |
|
|
inlinenoexcept |
◆ enqueue_task()
template<typename F , typename... Args>
auto thread_pool::enqueue_task |
( |
F && |
f, |
|
|
Args &&... |
args |
|
) |
| -> std::future<typename std::result_of<F(Args...)>::type>
|
|
inline |
◆ enqueue_work()
template<typename F , typename... Args>
void thread_pool::enqueue_work |
( |
F && |
f, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: