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