XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
DCond.hxx
浏览该文件的文档.
1
13#ifndef __xwos_cxx_sync_DCond_hxx__
14#define __xwos_cxx_sync_DCond_hxx__
15
18
19namespace xwos {
20namespace sync {
21
37class DCond
38 : public Cond
39{
40 private:
44 public:
48 DCond() : Cond(nullptr) {
50 if (XWOK == mCtorRc) {
52 }
53 }
55 xwer_t getCtorRc() { return mCtorRc; }
71
86
99 xwer_t freeze() { return Cond::freeze(); }
100
113 xwer_t thaw() { return Cond::thaw(); }
114
115 /* 生命周期管理 */
118};
119
124} // namespace sync
125} // namespace xwos
126
127#endif /* xwos/cxx/sync/DCond.hxx */
xwos::sync::Cond
条件量基类
Definition Cond.hxx:31
struct xwos_cond * mCondPtr
Definition Cond.hxx:33
xwer_t thaw()
Definition Cond.hxx:42
xwer_t unicast()
Definition Cond.hxx:39
xwer_t broadcast()
Definition Cond.hxx:40
xwer_t freeze()
Definition Cond.hxx:41
静态条件量
Definition DCond.hxx:39
xwer_t freeze()
冻结条件量
Definition DCond.hxx:99
xwer_t release()
Definition DCond.hxx:117
xwer_t acquire()
Definition DCond.hxx:116
xwer_t thaw()
解冻条件量
Definition DCond.hxx:113
xwer_t getCtorRc()
Definition DCond.hxx:55
DCond()
构造函数
Definition DCond.hxx:48
xwos_cond_d mCondDesc
Definition DCond.hxx:41
xwer_t broadcast()
广播条件量
Definition DCond.hxx:85
xwer_t unicast()
单播条件量
Definition DCond.hxx:70
操作系统抽象层:条件量
#define XWOK
No error
Definition errno.h:182
signed long xwer_t
Definition type.h:554
static xwer_t xwos_cond_acquire(xwos_cond_d condd)
XWOS API:检查条件量对象的标签并增加引用计数
Definition cond.h:218
static xwer_t xwos_cond_delete(xwos_cond_d condd)
XWOS API:删除动态方式创建的条件量对象
Definition cond.h:201
static xwer_t xwos_cond_create(xwos_cond_d *condd)
XWOS API:动态方式创建条件量对象
Definition cond.h:186
static xwer_t xwos_cond_release(xwos_cond_d condd)
XWOS API:检查对象的标签并减少引用计数
Definition cond.h:235
Definition Cpu.hxx:19
XWOS API:条件量对象描述符
Definition cond.h:98
struct xwos_cond * cond
Definition cond.h:99