|
libtasks Documentation
1.6
|
The base class for any task. More...
#include <task.h>


Classes | |
| struct | finish_func_t |
Public Types | |
| typedef std::function< void(worker *worker)> | finish_func_worker_t |
| typedef std::function< void()> | finish_func_void_t |
Public Member Functions | |
| virtual | ~task () |
| bool | auto_delete () const |
| Returns true if auto deletion is active. More... | |
| void | disable_auto_delete () |
| Call this to deactivate auto deletion. More... | |
| void | finish (worker *worker=nullptr) |
| Called by a worker when a task has auto_deletion enabled. More... | |
| void | on_finish (finish_func_worker_t f) |
| void | on_finish (finish_func_void_t f) |
Private Attributes | |
| bool | m_auto_delete = true |
| std::vector< finish_func_t > | m_finish_funcs |
| typedef std::function<void()> tasks::task::finish_func_void_t |
| typedef std::function<void(worker* worker)> tasks::task::finish_func_worker_t |
|
inline |
|
inline |
| void tasks::task::finish | ( | worker * | worker = nullptr | ) |
|
inline |
|
inline |
|
private |