This file contains functions for printing strings to standard error.
void runTasks()
Runs all pending tasks.
void displayInternalError(const string &msg)
Display msg to standard in a way that indicates that it is an internal error.
size_t _totalTasksEver
This is used for statistics so that it is not a disaster if this overflows for very long-running comp...
virtual void dispose()=0
Called when the task is no longer used but run has not and will not be called.
virtual void run(TaskEngine &engine)=0
Does whatever work this task represents.
size_t getTotalTasksEver()
Returns the number of times addTask has been successfully called.
void addTask(Task *task)
Add a task at the head of the list of pending tasks.
A Task object represents a unit of work that is performed when the method run() is called...
bool runNextTask()
Run the most recently added task that has not been run yet.