Class cubthread::callable_task¶
ClassList > cubthread > callable_task
#include <thread_task.hpp>
Inherits the following classes: cubthread::task
Public Types¶
| Type | Name |
|---|---|
| typedef std::function< void(Context &)> | exec_func_type |
Public Types inherited from cubthread::task¶
See cubthread::task
| Type | Name |
|---|---|
| typedef Context | context_type |
Public Functions¶
| Type | Name |
|---|---|
| callable_task () = delete |
|
| callable_task (const F & f, bool delete_on_retire=true) |
|
| callable_task (F && f, bool delete_on_retire=true) |
|
| callable_task (const FuncExec & fe, const FuncRetire & fr) |
|
| callable_task (FuncExec && fe, FuncRetire && fr) |
|
| virtual void | execute (Context & ctx) |
| virtual void | retire () |
Public Functions inherited from cubthread::task¶
See cubthread::task
| Type | Name |
|---|---|
| virtual void | execute (context_type &) = 0 |
| virtual void | retire (void) |
| task (void) = default |
|
| virtual | ~task (void) = default |
Public Types Documentation¶
typedef exec_func_type¶
Public Functions Documentation¶
function callable_task [1/5]¶
function callable_task [2/5]¶
template<typename F>
cubthread::callable_task::callable_task (
const F & f,
bool delete_on_retire=true
)
function callable_task [3/5]¶
function callable_task [4/5]¶
template<typename FuncExec, typename FuncRetire>
cubthread::callable_task::callable_task (
const FuncExec & fe,
const FuncRetire & fr
)
function callable_task [5/5]¶
template<typename FuncExec, typename FuncRetire>
cubthread::callable_task::callable_task (
FuncExec && fe,
FuncRetire && fr
)
function execute¶
Implements cubthread::task::execute
function retire¶
Implements cubthread::task::retire
The documentation for this class was generated from the following file cubrid/src/thread/thread_task.hpp