#include <condition_variable>
#include <exception>
#include <functional>
#include <mutex>
#include <optional>
#include <stdexcept>
#include <thread>
#include <utility>
#include <vector>
Go to the source code of this file.
|
| void | batmat::pool_set_num_threads (size_t num_threads) |
| | Set the number of threads in the global thread pool.
|
| template<class I = size_t, class F> |
| void | batmat::pool_sync_run_all (F &&f) |
| | Run a function on all threads in the global thread pool, synchronously waiting for all threads.
|
| template<class I = size_t, class F> |
| void | batmat::pool_sync_run_n (I n, F &&f) |
| | Run a function on the first n threads in the global thread pool, synchronously waiting for those threads.
|
◆ batmat::thread_pool::Signals
| struct batmat::thread_pool::Signals |
| Class Members |
|
mutex |
mtx |
|
|
condition_variable_any |
cv |
|