|
libhatchet
|
#include <hxtask.hpp>
Public Member Functions | |
| virtual bool | execute (hxtask_queue *)=0 |
| virtual void | on_completion (hxtask_queue *) |
| virtual void | on_failure (hxtask_queue *) |
| virtual void | on_cancel (hxtask_queue *) |
| virtual const char * | get_label (void) const |
Friends | |
| class | hxtask_queue |
hxtask - Pure virtual base class for operations to be performed on a different thread or at a later time.
|
pure virtual |
Executes the task.
This is the main function to implement in derived classes. It is also wrapped in a hxprofiler scope when called. Returns true on success or false on failure.
|
inlinevirtual |
Returns the label of the task, or "task" by default.
|
inlinevirtual |
Indicates cancelled execution.
This call is the last time this object is touched by the hxtask_queue. WARNING: on_cancel may not reenqueue.
Reimplemented in hxtask_dag_node< max_successors_ >.
|
inlinevirtual |
Indicates successful execution.
This call is the last time this object is touched by the hxtask_queue. An on_completion override may delete or re-enqueue the this pointer.
Reimplemented in hxtask_dag_node< max_successors_ >.
|
inlinevirtual |
Indicates failed execution.
This call is the last time this object is touched by the hxtask_queue. An on_failure override may delete or re-enqueue the this pointer.
Reimplemented in hxtask_dag_node< max_successors_ >.
|
friend |