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
16
#include <
xwos/osal/sync/cond.hxx
>
17
#include <
xwos/cxx/sync/Cond.hxx
>
18
19
namespace
xwos
{
20
namespace
sync {
21
32
class
DCond
:
public
Cond
33
{
34
private
:
35
xwos_cond_d
mCondDesc
;
36
xwer_t
mCtorRc
;
38
public
:
42
DCond
() :
Cond
()
43
{
44
mCtorRc
=
xwos_cond_create
(&
mCondDesc
);
45
if
(
XWOK
==
mCtorRc
) {
46
Cond::mCondPtr
=
mCondDesc
.
cond
;
47
}
48
}
52
~DCond
() {
xwos_cond_delete
(
mCondDesc
); }
58
xwer_t
getDCondCtorRc
() {
return
mCtorRc
; }
59
60
/* 生命周期管理 */
61
xwer_t
acquire
() {
return
xwos_cond_acquire
(
mCondDesc
); }
62
xwer_t
release
() {
return
xwos_cond_release
(
mCondDesc
); }
63
};
64
69
}
// namespace sync
70
}
// namespace xwos
71
72
#endif
/* xwos/cxx/sync/DCond.hxx */
Cond.hxx
xwos::sync::Cond
xwos::sync::Cond
条件量基类
Definition
Cond.hxx:56
xwos::sync::Cond::mCondPtr
struct xwos_cond * mCondPtr
Definition
Cond.hxx:58
xwos::sync::DCond
静态条件量
Definition
DCond.hxx:33
xwos::sync::DCond::~DCond
~DCond()
析构函数
Definition
DCond.hxx:52
xwos::sync::DCond::mCtorRc
xwer_t mCtorRc
Definition
DCond.hxx:36
xwos::sync::DCond::release
xwer_t release()
Definition
DCond.hxx:62
xwos::sync::DCond::acquire
xwer_t acquire()
Definition
DCond.hxx:61
xwos::sync::DCond::getDCondCtorRc
xwer_t getDCondCtorRc()
获取动态条件量构造的结果
Definition
DCond.hxx:58
xwos::sync::DCond::DCond
DCond()
构造函数
Definition
DCond.hxx:42
xwos::sync::DCond::mCondDesc
xwos_cond_d mCondDesc
Definition
DCond.hxx:35
cond.hxx
操作系统抽象层:条件量
XWOK
#define XWOK
No error
Definition
errno.h:182
xwer_t
signed long xwer_t
Definition
type.h:554
xwos_cond_acquire
static xwer_t xwos_cond_acquire(xwos_cond_d condd)
XWOS API:检查条件量对象的标签并增加引用计数
Definition
cond.h:214
xwos_cond_delete
static xwer_t xwos_cond_delete(xwos_cond_d condd)
XWOS API:删除动态方式创建的条件量对象
Definition
cond.h:197
xwos_cond_create
static xwer_t xwos_cond_create(xwos_cond_d *condd)
XWOS API:动态方式创建条件量对象
Definition
cond.h:182
xwos_cond_release
static xwer_t xwos_cond_release(xwos_cond_d condd)
XWOS API:检查对象的标签并减少引用计数
Definition
cond.h:231
xwos
Definition
Bmp.hxx:21
xwos_cond_d
XWOS API:条件量对象描述符
Definition
cond.h:94
xwos_cond_d::cond
struct xwos_cond * cond
Definition
cond.h:95
xwos
cxx
sync
DCond.hxx
制作者
1.9.7