#include <ppqsort/parallel/cpp/thread_pool.h>
template<typename taskType = std::function<void()>>
ThreadPool class
Constructors, destructors, conversion operators
- ThreadPool(ThreadPool&) deleted
- ThreadPool(const std::size_t threads_count = std::thread::hardware_concurrency()) explicit
- ~ThreadPool()
Public functions
- void wait_and_stop()
- Wait for all tasks to finish and stop the threads. After this call returns, the thread pool is not usable anymore.
- void push_task(taskType&& task)