Frobby
0.9.5
|
A Task object represents a unit of work that is performed when the method run() is called. More...
#include <Task.h>
Public Member Functions | |
virtual | ~Task () |
virtual void | run (TaskEngine &engine)=0 |
Does whatever work this task represents. More... | |
virtual void | dispose ()=0 |
Called when the task is no longer used but run has not and will not be called. More... | |
A Task object represents a unit of work that is performed when the method run() is called.
Tasks are intended to be used with a TaskEngine.
|
pure virtual |
Called when the task is no longer used but run has not and will not be called.
This can happen from a destructor being called due to an exception, so dispose must not throw an exception under any circumstances.
Implemented in Slice, MsmIndependenceSplit, HilbertIndependenceConsumer, and BigattiState.
|
pure virtual |
Does whatever work this task represents.
The parameter can be used to schedule additional tasks.
Implemented in Slice, BigattiState, MsmIndependenceSplit, and HilbertIndependenceConsumer.