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 : public Cond
38{
39 private:
43 public:
47 SCond() : Cond()
48 {
50 if (XWOK == mCtorRc) {
52 }
53 }
55 xwer_t getCtorRc() { return mCtorRc; }
57 /* 生命周期管理 */
59 xwer_t put() { return xwos_cond_put(&mCond); }
61 private:
62 static void * operator new(xwsz_t sz) = delete;
63 void operator delete(void * obj) = delete;
64};
65
70} // namespace sync
71} // namespace xwos
72
73#endif /* xwos/cxx/sync/SCond.hxx */
xwos::sync::Cond
条件量基类
Definition Cond.hxx:56
struct xwos_cond * mCondPtr
Definition Cond.hxx:58
静态条件量
Definition SCond.hxx:38
struct xwos_cond mCond
Definition SCond.hxx:40
xwer_t grab()
Definition SCond.hxx:58
xwer_t getCtorRc()
Definition SCond.hxx:55
xwer_t put()
Definition SCond.hxx:59
SCond()
构造函数
Definition SCond.hxx:47
操作系统抽象层:条件量
#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 Bmp.hxx:21
XWOS API:条件量对象
Definition cond.h:91