frepple::utils::ThreadGroup Class Reference
This class supports parallel execution of a number of functions. More...
#include <utils.h>
Inheritance diagram for frepple::utils::ThreadGroup:

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) | |
Detailed Description
This class supports parallel execution of a number of functions.
Currently Pthreads and Windows threads are supported as the implementation of the multithreading.
Member Typedef Documentation
| typedef void(* frepple::utils::ThreadGroup::callable)(void *) |
Constructor & Destructor Documentation
| frepple::utils::ThreadGroup::ThreadGroup | ( | ) | [inline] |
| frepple::utils::ThreadGroup::ThreadGroup | ( | int | i | ) | [inline] |
Member Function Documentation
| void frepple::utils::ThreadGroup::add | ( | callable | func, |
| void * | args | ||
| ) | [inline] |
| void frepple::utils::ThreadGroup::execute | ( | ) |
Execute all functions and wait for them to finish.
Definition at line 252 of file utils/actions.cpp.
| int frepple::utils::ThreadGroup::getMaxParallel | ( | ) | const [inline] |
| void frepple::utils::ThreadGroup::setMaxParallel | ( | int | b | ) | [inline] |
The documentation for this class was generated from the following files:
Documentation generated for frePPLe by
