XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
DFlg.hxx
浏览该文件的文档.
1
13#ifndef __xwos_cxx_sync_DFlg_hxx__
14#define __xwos_cxx_sync_DFlg_hxx__
15
17#include <xwos/cxx/sync/Flg.hxx>
18
19namespace xwos {
20namespace sync {
21
37template<xwsz_t TNum>
38class DFlg : public Flg<TNum>
39{
40 private:
44 public:
49 : Flg<TNum>()
50 {
52 if (XWOK == mCtorRc) {
54 }
55 }
57 xwer_t getCtorRc() { return mCtorRc; }
59 /* 生命周期管理 */
62};
63
68} // namespace sync
69} // namespace xwos
70
71#endif /* xwos/cxx/sync/DFlg.hxx */
xwos::sync::Flg
动态事件标志
Definition DFlg.hxx:39
DFlg()
构造函数
Definition DFlg.hxx:48
xwer_t release()
Definition DFlg.hxx:61
xwos_flg_d mFlgDesc
Definition DFlg.hxx:41
xwer_t mCtorRc
Definition DFlg.hxx:42
xwer_t acquire()
Definition DFlg.hxx:60
xwer_t getCtorRc()
Definition DFlg.hxx:57
事件标志基类
Definition Flg.hxx:62
操作系统抽象层:事件标志
#define XWOK
No error
Definition errno.h:182
signed long xwer_t
Definition type.h:554
static xwer_t xwos_flg_release(xwos_flg_d flgd)
XWOS API:检查事件标志对象的标签并减少引用计数
Definition flg.h:256
static xwer_t xwos_flg_acquire(xwos_flg_d flgd)
XWOS API:检查事件标志对象的标签并增加引用计数
Definition flg.h:239
static xwer_t xwos_flg_create(xwos_flg_d *flgd, xwsz_t num)
XWOS API:动态方式创建事件标志对象
Definition flg.h:207
static xwer_t xwos_flg_delete(xwos_flg_d flgd)
XWOS API:删除动态方式创建的事件标志对象
Definition flg.h:222
Definition Bmp.hxx:21
XWOS API:事件标志对象描述符
Definition flg.h:101
struct xwos_flg * flg
Definition flg.h:102