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
37
class
DCond
:
public
Cond
38
{
39
private
:
40
xwos_cond_d
mCondDesc
;
41
xwer_t
mCtorRc
;
43
public
:
47
DCond
() :
Cond
()
48
{
49
mCtorRc
=
xwos_cond_create
(&
mCondDesc
);
50
if
(
XWOK
==
mCtorRc
) {
51
Cond::mCondPtr
=
mCondDesc
.
cond
;
52
}
53
}
54
~DCond
() {
xwos_cond_delete
(
mCondDesc
); }
55
xwer_t
getCtorRc
() {
return
mCtorRc
; }
57
/* 生命周期管理 */
58
xwer_t
acquire
() {
return
xwos_cond_acquire
(
mCondDesc
); }
59
xwer_t
release
() {
return
xwos_cond_release
(
mCondDesc
); }
60
};
61
66
}
// namespace sync
67
}
// namespace xwos
68
69
#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:38
xwos::sync::DCond::~DCond
~DCond()
Definition
DCond.hxx:54
xwos::sync::DCond::mCtorRc
xwer_t mCtorRc
Definition
DCond.hxx:41
xwos::sync::DCond::release
xwer_t release()
Definition
DCond.hxx:59
xwos::sync::DCond::acquire
xwer_t acquire()
Definition
DCond.hxx:58
xwos::sync::DCond::getCtorRc
xwer_t getCtorRc()
Definition
DCond.hxx:55
xwos::sync::DCond::DCond
DCond()
构造函数
Definition
DCond.hxx:47
xwos::sync::DCond::mCondDesc
xwos_cond_d mCondDesc
Definition
DCond.hxx:40
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:218
xwos_cond_delete
static xwer_t xwos_cond_delete(xwos_cond_d condd)
XWOS API:删除动态方式创建的条件量对象
Definition
cond.h:201
xwos_cond_create
static xwer_t xwos_cond_create(xwos_cond_d *condd)
XWOS API:动态方式创建条件量对象
Definition
cond.h:186
xwos_cond_release
static xwer_t xwos_cond_release(xwos_cond_d condd)
XWOS API:检查对象的标签并减少引用计数
Definition
cond.h:235
xwos
Definition
Bmp.hxx:21
xwos_cond_d
XWOS API:条件量对象描述符
Definition
cond.h:98
xwos_cond_d::cond
struct xwos_cond * cond
Definition
cond.h:99
xwos
cxx
sync
DCond.hxx
制作者
1.9.7