|TaskBase (TaskQueue *q)|
|Construct a new TaskBase object. More...|
|Destroy this TaskBase. More...|
|void||set (TaskQueue *q)|
|Set the queue of this task. More...|
|Cancel the execution of this task. More...|
|Return true if this task is ready to be posted. More...|
|Wait for this task to finish execution. More...|
|Check if the callback has run to completion or been fully canceled. More...|
|virtual uint32_t||size ()=0|
|Size of buffer required for TaskBase::start. More...|
|virtual run_callback_t||start (void *data, uint32_t size)=0|
|Copy any callback data and return a callback to run. More...|
|virtual void||finish ()|
|Inform this task that execution has finished. More...|
|Post this task to the set TaskQueue for execution. More...|
Cancel the execution of this task.
Once cancelled the task can be posted again. Previous calls to post may still run. If you need to ensure the callback has finished the function wait() can be used.
Inform this task that execution has finished.
Check if the callback has run to completion or been fully canceled.
When an task is finished the queue is completely done with it and the callback is either fully complete or has been canceled and will not run.
Post this task to the set TaskQueue for execution.
Return true if this task is ready to be posted.
Check if this task is on a queue waiting to be run.
Wait for this task to finish execution.
When this function returns then this task is in the finished state.