fastdo  0.5.12
winux::TaskCtxT< _Ty > 模板结构体 参考

#include <threads.hpp>

类 winux::TaskCtxT< _Ty > 继承关系图:
winux::TaskCtxT< _Ty > 的协作图:

Public 成员函数

_Ty get ()
 
void exec (RunableInvoker< _Ty > *ivk)
 
- Public 成员函数 继承自 winux::TaskCtx
bool wait (double sec=-1)
 等待任务结束 更多...
 
void updateStatus (TaskStatus st, bool isNotifyAll=false)
 更新运行状态 更多...
 
void rePost ()
 重新投入线程池队列中 更多...
 

静态 Public 成员函数

template<typename... _ArgType>
static SharedPointer< TaskCtxTCreate (_ArgType &&...arg)
 

Public 属性

_Ty val
 
- Public 属性 继承自 winux::TaskCtx
Mutex mtxTask
 
Condition cdtTask
 
TaskStatus status
 
ThreadPoolpool
 
WeakPointer< TaskCtxweakThis
 
SimplePointer< Runable > poolRunable
 

Protected 成员函数

 TaskCtxT ()
 
- Protected 成员函数 继承自 winux::TaskCtx
 TaskCtx ()
 
virtual ~TaskCtx ()
 

额外继承的成员函数

- Public 类型 继承自 winux::TaskCtx
enum  TaskStatus { taskPending, taskRunning, taskStop }
 

详细描述

template<typename _Ty>
struct winux::TaskCtxT< _Ty >

在文件 threads.hpp568 行定义.

构造及析构函数说明

template<typename _Ty>
winux::TaskCtxT< _Ty >::TaskCtxT ( )
inlineprotected

在文件 threads.hpp591 行定义.

成员函数说明

template<typename _Ty>
template<typename... _ArgType>
static SharedPointer<TaskCtxT> winux::TaskCtxT< _Ty >::Create ( _ArgType &&...  arg)
inlinestatic

在文件 threads.hpp573 行定义.

template<typename _Ty>
void winux::TaskCtxT< _Ty >::exec ( RunableInvoker< _Ty > *  ivk)
inline

在文件 threads.hpp586 行定义.

template<typename _Ty>
_Ty winux::TaskCtxT< _Ty >::get ( )
inline

在文件 threads.hpp580 行定义.

类成员变量说明

template<typename _Ty>
_Ty winux::TaskCtxT< _Ty >::val

在文件 threads.hpp570 行定义.


该结构体的文档由以下文件生成: