This class manages all the processes. More...
#include <cProcessManager.hpp>
Public Member Functions | |
| unsigned int | Push (void(*_pFunction)(ePurpose _Purpose)) |
| bool | Pop (unsigned int _id) |
| bool | Clear () |
| bool | Process () |
This class manages all the processes.
The cProcessManager is like a linked list. The Process Order is: first added runs first
| bool cProcessManager::Clear | ( | ) |
Deletes every sProcess.
| bool cProcessManager::Pop | ( | unsigned int | _id | ) |
Delete the sProces with the ID: _id
| _id | the ID of the sProcess to kill |
| bool cProcessManager::Process | ( | ) |
Execute every sProcess. The ePurpose is "RUN_PURPOSE".
| unsigned int cProcessManager::Push | ( | void(*)(ePurpose _Purpose) | _pFunction | ) |
Puts a new sProcess into the "Linked list of Processes"
| (*_pFunction) | The function of the state |
1.6.3