libtasks Documentation
1.6
|
#include <exec_task.h>
Public Types | |
typedef std::function< void()> | func_t |
![]() | |
typedef std::function< void(worker *worker)> | finish_func_worker_t |
typedef std::function< void()> | finish_func_void_t |
Public Member Functions | |
exec_task (func_t f) | |
virtual | ~exec_task () |
std::string | get_string () const |
virtual void | execute () |
![]() | |
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 | |
func_t | m_func |
Definition at line 18 of file exec_task.h.
typedef std::function<void()> tasks::exec_task::func_t |
Definition at line 20 of file exec_task.h.
|
inline |
Definition at line 22 of file exec_task.h.
|
inlinevirtual |
Definition at line 23 of file exec_task.h.
|
inlinevirtual |
Definition at line 31 of file exec_task.h.
|
inline |
|
private |
Definition at line 37 of file exec_task.h.