|
ThreadSchedule 1.0.0
Modern C++ thread management library
|
Singleton accessor for a process-wide HighPerformancePool instance. More...
#include <thread_pool.hpp>
Static Public Member Functions | |
| static auto | instance () -> HighPerformancePool & |
| template<typename F, typename... Args> | |
| static auto | submit (F &&f, Args &&... args) |
| template<typename Iterator> | |
| static auto | submit_batch (Iterator begin, Iterator end) |
| template<typename Iterator, typename F> | |
| static void | parallel_for_each (Iterator begin, Iterator end, F &&func) |
Singleton accessor for a process-wide HighPerformancePool instance.
Provides static convenience methods that forward to a single HighPerformancePool whose lifetime is managed as a function-local static (Meyer's singleton).
std::thread::hardware_concurrency() threads. This size is fixed for the lifetime of the process; there is no API to resize the singleton pool after creation.Definition at line 1456 of file thread_pool.hpp.
|
inlinestatic |
Definition at line 1459 of file thread_pool.hpp.
|
inlinestatic |
Definition at line 1478 of file thread_pool.hpp.
|
inlinestatic |
Definition at line 1466 of file thread_pool.hpp.
|
inlinestatic |
Definition at line 1472 of file thread_pool.hpp.