Start a new task or restart an existing task that just finished. These functions may be called directly after creation, or from within finish_impl , or from the call back function.
- See also
- page_default_engine
◆ run() [1/4]
◆ run() [2/4]
(Re)run a task with default handler default_handler, requesting to signal the parent on condition condition when successfully finished.
Upon an abort the parent can either still be signaled, also aborted or be left in limbo (do nothing).
- Parameters
-
default_handler | The way that this task should be handled by default. |
parent | The parent task. |
condition | The condition of the parent that will be signaled. |
on_abort | What to do with the parent when this task is aborted. |
◆ run() [3/4]
void AIStatefulTask::run |
( |
Handler |
default_handler, |
|
|
std::function< void(bool)> |
cb_function |
|
) |
| |
(Re)run a task with default handler default_handler, requesting a call back to a function void cb_function(bool success)
. The parameter success
will be true
when the task finished successfully, or false
when it was aborted.
- Parameters
-
default_handler | The way that this task should be handled by default. |
cb_function | The call back function. This function will be called with a single parameter with type bool . |
◆ run() [4/4]
Just run the bloody task (no call back).
- Parameters
-
default_handler | The default engine or thread pool queue that the task be added to. |