18 #ifndef TASK_ENGINE_GUARD
19 #define TASK_ENGINE_GUARD
TaskEngine handles a list of tasks that are to be carried out.
void addTask(Task *task)
Add a task at the head of the list of pending tasks.
size_t getTotalTasksEver()
Returns the number of times addTask has been successfully called.
bool runNextTask()
Run the most recently added task that has not been run yet.
size_t _totalTasksEver
This is used for statistics so that it is not a disaster if this overflows for very long-running comp...
void runTasks()
Runs all pending tasks.
A Task object represents a unit of work that is performed when the method run() is called.