XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到

静态条件量 更多...

#include <SCond.hxx>

类 xwos::sync::SCond 继承关系图:
xwos::sync::SCond 的协作图:

Public 成员函数

 SCond ()
 构造函数
 
 ~SCond ()
 
xwer_t getCtorRc ()
 
xwer_t grab ()
 
xwer_t put ()
 
- Public 成员函数 继承自 xwos::sync::Cond
xwer_t unicast ()
 单播条件量
 
xwer_t broadcast ()
 广播条件量
 
xwer_t freeze ()
 冻结条件量
 
xwer_t thaw ()
 解冻条件量
 
template<xwsz_t TSelNum>
xwer_t bind (Sel< TSelNum > *sel, long pos)
 绑定条件量对象到信号选择器
 
template<xwsz_t TSelNum>
xwer_t bind (Sel< TSelNum > &sel, long pos)
 
template<xwsz_t TSelNum>
xwer_t unbind (Sel< TSelNum > *sel)
 从信号选择器上解绑条件量对象
 
template<xwsz_t TSelNum>
xwer_t unbind (Sel< TSelNum > &sel)
 
struct xwos_condgetXwosObj ()
 获取XWOS对象指针
 

Private 成员函数

void operator delete (void *obj)=delete
 

静态 Private 成员函数

static void * operator new (xwsz_t sz)=delete
 

Private 属性

struct xwos_cond mCond
 
xwer_t mCtorRc
 

额外继承的成员函数

- Protected 成员函数 继承自 xwos::sync::Cond
 Cond ()
 
 ~Cond ()
 
- Protected 属性 继承自 xwos::sync::Cond
struct xwos_condmCondPtr
 

详细描述

静态条件量

在文件 SCond.hxx37 行定义.

构造及析构函数说明

◆ SCond()

xwos::sync::SCond::SCond ( )
inline

构造函数

<No error

在文件 SCond.hxx47 行定义.

47 : Cond()
48 {
50 if (XWOK == mCtorRc) {
52 }
53 }
struct xwos_cond * mCondPtr
Definition Cond.hxx:58
struct xwos_cond mCond
Definition SCond.hxx:40
#define XWOK
No error
Definition errno.h:182
static xwer_t xwos_cond_init(struct xwos_cond *cond)
XWOS API:静态方式初始化条件量对象
Definition cond.h:118
函数调用图:

◆ ~SCond()

xwos::sync::SCond::~SCond ( )
inline

析构函数

在文件 SCond.hxx54 行定义.

函数调用图:

成员函数说明

◆ getCtorRc()

xwer_t xwos::sync::SCond::getCtorRc ( )
inline

获取静态条件量构造的结果

在文件 SCond.hxx55 行定义.

◆ grab()

xwer_t xwos::sync::SCond::grab ( )
inline

增加引用计数

在文件 SCond.hxx58 行定义.

函数调用图:

◆ put()

xwer_t xwos::sync::SCond::put ( )
inline

减少引用计数

在文件 SCond.hxx59 行定义.

函数调用图:

◆ operator new()

static void * xwos::sync::SCond::operator new ( xwsz_t  sz)
staticprivatedelete

◆ operator delete()

void xwos::sync::SCond::operator delete ( void *  obj)
privatedelete

结构体成员变量说明

◆ mCond

struct xwos_cond xwos::sync::SCond::mCond
private

条件量结构体

在文件 SCond.hxx40 行定义.

◆ mCtorRc

xwer_t xwos::sync::SCond::mCtorRc
private

条件量构造的结果

在文件 SCond.hxx41 行定义.


该类的文档由以下文件生成: