XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
SCond.hxx
浏览该文件的文档.
1
13#ifndef __xwos_cxx_sync_SCond_hxx__
14#define __xwos_cxx_sync_SCond_hxx__
15
18
19namespace xwos {
20namespace sync {
21
37class SCond
38 : public Cond
39{
40 private:
44 public:
48 SCond() : 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 /* 生命周期管理 */
117 xwer_t put() { return xwos_cond_put(&mCond); }
119 private:
120 static void * operator new(xwsz_t sz) = delete;
121 void operator delete(void * obj) = delete;
122};
123
128} // namespace sync
129} // namespace xwos
130
131#endif /* xwos/cxx/sync/SCond.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 SCond.hxx:39
xwer_t thaw()
解冻条件量
Definition SCond.hxx:113
struct xwos_cond mCond
Definition SCond.hxx:41
xwer_t freeze()
冻结条件量
Definition SCond.hxx:99
xwer_t broadcast()
广播条件量
Definition SCond.hxx:85
xwer_t grab()
Definition SCond.hxx:116
xwer_t getCtorRc()
Definition SCond.hxx:55
SCond()
构造函数
Definition SCond.hxx:48
xwer_t unicast()
单播条件量
Definition SCond.hxx:70
操作系统抽象层:条件量
#define XWOK
No error
Definition errno.h:182
signed long xwer_t
Definition type.h:554
unsigned long xwsz_t
Definition type.h:339
static xwer_t xwos_cond_init(struct xwos_cond *cond)
XWOS API:静态方式初始化条件量对象
Definition cond.h:118
static xwer_t xwos_cond_fini(struct xwos_cond *cond)
XWOS API:销毁静态方式初始化的条件量对象
Definition cond.h:133
static xwer_t xwos_cond_grab(struct xwos_cond *cond)
XWOS API:增加条件量对象的引用计数
Definition cond.h:152
static xwer_t xwos_cond_put(struct xwos_cond *cond)
XWOS API:减少条件量对象的引用计数
Definition cond.h:171
Definition Cpu.hxx:19
XWOS API:条件量对象
Definition cond.h:91