The ActionScheduler class maintains a list of actions, that should be executed later in a specific context.
More...
#include <actionscheduler.h>
|
using | Action = std::function< bool(void)> |
| functions that can be stored as actions can not have parameters and must return a bool whether they should be scheduled again More...
|
|
The ActionScheduler class maintains a list of actions, that should be executed later in a specific context.
This class can be safely used across multiple threads.
functions that can be stored as actions can not have parameters and must return a bool whether they should be scheduled again
terminus::ActionScheduler::ActionScheduler |
( |
| ) |
|
void terminus::ActionScheduler::executeActions |
( |
| ) |
|
execute all Actions currently contained in the action list and possibly schedule them again
void terminus::ActionScheduler::scheduleAction |
( |
const Action & |
action | ) |
|
add an Action to the action list
- Parameters
-
std::vector<Action> terminus::ActionScheduler::m_actionList[2] |
|
protected |
std::recursive_mutex terminus::ActionScheduler::m_actionListMutex |
|
protected |
int terminus::ActionScheduler::m_currentActionList |
|
protected |
The documentation for this class was generated from the following files: