76 #endif // _TASKS_TASK_H_
std::function< void()> finish_func_void_t
The base class for any task.
bool auto_delete() const
Returns true if auto deletion is active.
void finish(worker *worker=nullptr)
Called by a worker when a task has auto_deletion enabled.
finish_func_worker_t m_f_worker
void on_finish(finish_func_worker_t f)
finish_func_void_t m_f_void
void disable_auto_delete()
Call this to deactivate auto deletion.
void on_finish(finish_func_void_t f)
finish_func_t(finish_func_worker_t f)
std::vector< finish_func_t > m_finish_funcs
finish_func_t(finish_func_void_t f)
void operator()(worker *worker)
std::function< void(worker *worker)> finish_func_worker_t