|
| | ThreadPool (size_t threads=std::thread::hardware_concurrency()) |
| template<class F, class... Args> |
| auto | enqueue (F &&f, Args &&... args) -> std::future< std::invoke_result_t< F, Args... > > |
Definition at line 11 of file ThreadPool.hpp.
◆ ThreadPool()
| vex::ThreadPool::ThreadPool |
( |
size_t | threads = std::thread::hardware_concurrency() | ) |
|
|
inline |
◆ ~ThreadPool()
| vex::ThreadPool::~ThreadPool |
( |
| ) |
|
|
inline |
◆ enqueue()
template<class F, class... Args>
| auto vex::ThreadPool::enqueue |
( |
F && | f, |
|
|
Args &&... | args ) -> std::future< std::invoke_result_t< F, Args... > > |
|
inline |
◆ condition
| std::condition_variable vex::ThreadPool::condition |
|
private |
◆ queue_mutex
| std::mutex vex::ThreadPool::queue_mutex |
|
private |
◆ stop
| bool vex::ThreadPool::stop |
|
private |
◆ tasks
| std::queue<std::function<void()> > vex::ThreadPool::tasks |
|
private |
◆ workers
| std::vector<std::thread> vex::ThreadPool::workers |
|
private |
The documentation for this class was generated from the following file: