13#if HX_USE_MACROS_WITH_MODULE
14#error Header does not provide macros alone.
49 virtual const char*
get_label(
void)
const {
return "task"; }
hxtask_queue - Provides a priority queue of tasks and a worker thread pool.
Definition hxtask_queue.hpp:25
hxtask - Pure virtual base class for operations to be performed on a different thread or at a later t...
Definition hxtask.hpp:23
virtual void on_completion(hxtask_queue *)
Indicates successful execution.
Definition hxtask.hpp:35
friend class hxtask_queue
Definition hxtask.hpp:52
virtual const char * get_label(void) const
Returns the label of the task, or "task" by default.
Definition hxtask.hpp:49
virtual bool execute(hxtask_queue *)=0
Executes the task.
virtual void on_cancel(hxtask_queue *)
Indicates cancelled execution.
Definition hxtask.hpp:46
virtual void on_failure(hxtask_queue *)
Indicates failed execution.
Definition hxtask.hpp:41
Provides core macros, memory management and feature detection.