![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
#include <threadExecutorOMP.h>
Static Public Member Functions | |
| template<typename FUNCTION, typename... ARGS> | |
| static void | execute (std::size_t nb_threads, FUNCTION exec_func, ARGS &&... func_args) |
| executes a function using several threads | |
| template<typename FUNC1, typename FUNC2, typename... ARGS> | |
| 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 exceptions are raised | |
| static int | nbRunningThreadsExecutors () |
| indicates how many threadExecutors are currently running | |
Static Private Attributes | |
| static std::atomic< int > | nbRunningThreadsExecutors_ {0} |
| he number of currently running ThreadExecutors | |
Definition at line 87 of file threadExecutorOMP.h.
|
static |
executes a function using several threads
|
static |
executes in parallel a function and undoes it if exceptions are raised
|
static |
indicates how many threadExecutors are currently running
Definition at line 74 of file threadExecutorBase_inl.h.
|
staticprotectedinherited |
he number of currently running ThreadExecutors
Definition at line 78 of file threadExecutorBase.h.
Referenced by nbRunningThreadsExecutors().