|
CUBRID Engine
latest
|
#include <thread_task.hpp>


Public Types | |
| using | exec_func_type = std::function< void(Context &)> |
Public Types inherited from cubthread::task< Context > | |
| using | context_type = Context |
Public Member Functions | |
| callable_task ()=delete | |
| template<typename F > | |
| callable_task (const F &f, bool delete_on_retire=true) | |
| template<typename F > | |
| callable_task (F &&f, bool delete_on_retire=true) | |
| template<typename FuncExec , typename FuncRetire > | |
| callable_task (const FuncExec &fe, const FuncRetire &fr) | |
| template<typename FuncExec , typename FuncRetire > | |
| callable_task (FuncExec &&fe, FuncRetire &&fr) | |
| void | execute (Context &ctx) final |
| void | retire () final |
Public Member Functions inherited from cubthread::task< Context > | |
| task (void)=default | |
| virtual | ~task (void)=default |
Private Attributes | |
| std::function< void(Context &)> | m_exec_f |
| std::function< void(void)> | m_retire_f |
Definition at line 83 of file thread_task.hpp.
| using cubthread::callable_task< Context >::exec_func_type = std::function<void (Context &)> |
Definition at line 86 of file thread_task.hpp.
|
delete |
| cubthread::callable_task< Context >::callable_task | ( | const F & | f, |
| bool | delete_on_retire = true |
||
| ) |
Definition at line 233 of file thread_task.hpp.
References cubthread::callable_task< Context >::m_retire_f.
| cubthread::callable_task< Context >::callable_task | ( | F && | f, |
| bool | delete_on_retire = true |
||
| ) |
Definition at line 248 of file thread_task.hpp.
References cubthread::callable_task< Context >::m_retire_f.
| cubthread::callable_task< Context >::callable_task | ( | const FuncExec & | fe, |
| const FuncRetire & | fr | ||
| ) |
Definition at line 263 of file thread_task.hpp.
| cubthread::callable_task< Context >::callable_task | ( | FuncExec && | fe, |
| FuncRetire && | fr | ||
| ) |
Definition at line 271 of file thread_task.hpp.
|
inlinefinalvirtual |
Implements cubthread::task< Context >.
Definition at line 102 of file thread_task.hpp.
|
inlinefinalvirtual |
Reimplemented from cubthread::task< Context >.
Definition at line 107 of file thread_task.hpp.
|
private |
Definition at line 113 of file thread_task.hpp.
|
private |
Definition at line 114 of file thread_task.hpp.
Referenced by cubthread::callable_task< Context >::callable_task(), and cubthread::callable_task< void >::callable_task().