48#ifndef GUM_THREAD_EXECUTOR_STL_H
49#define GUM_THREAD_EXECUTOR_STL_H
86 template <
typename FUNCTION,
typename... ARGS >
87 static void execute(std::size_t nb_threads, FUNCTION exec_func, ARGS&&... func_args);
91 template <
typename FUNC1,
typename FUNC2,
typename... ARGS >
Set the max number of threads to be used.
static int nbRunningThreadsExecutors()
indicates how many threadExecutors are currently running
gum is the global namespace for all aGrUM entities
static void execute(std::size_t nb_threads, FUNCTION exec_func, ARGS &&... func_args)
executes a function using several threads
static void executeOrUndo(std::size_t nb_threads, FUNC1 exec_func, FUNC2 undo_func, ARGS &&... func_args)
executes in parallel a function and undoes it if execptions are raised
The base class used by all thread executors.
A class to execute several threads by exploiting std::thread.
C++17 STL threads convenience utilities for aGrUM.