This class supports parallel execution of a number of functions. More...
#include <utils.h>

Public Types | |
| typedef void(* | callable )(void *) |
Public Member Functions | |
| void | add (callable func, void *args) |
| void | execute () |
| int | getMaxParallel () const |
| void | setMaxParallel (int b) |
| ThreadGroup () | |
| ThreadGroup (int i) | |
Additional Inherited Members | |
Protected Member Functions inherited from frepple::utils::NonCopyable | |
| NonCopyable () | |
| ~NonCopyable () | |
This class supports parallel execution of a number of functions.
Currently Pthreads and Windows threads are supported as the implementation of the multithreading.
| typedef void(* frepple::utils::ThreadGroup::callable)(void *) |
|
inline |
|
inline |
|
inline |
| void frepple::utils::ThreadGroup::execute | ( | ) |
Execute all functions and wait for them to finish.
Definition at line 245 of file utils/actions.cpp.
|
inline |
|
inline |