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
38
:
public
Cond
39
{
40
private
:
41
xwos_cond_d
mCondDesc
;
42
xwer_t
mCtorRc
;
44
public
:
48
DCond
() :
Cond
(nullptr) {
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
; }
70
xwer_t
unicast
() {
return
Cond::unicast
(); }
71
85
xwer_t
broadcast
() {
return
Cond::broadcast
(); }
86
99
xwer_t
freeze
() {
return
Cond::freeze
(); }
100
113
xwer_t
thaw
() {
return
Cond::thaw
(); }
114
115
/* 生命周期管理 */
116
xwer_t
acquire
() {
return
xwos_cond_acquire
(
mCondDesc
); }
117
xwer_t
release
() {
return
xwos_cond_release
(
mCondDesc
); }
118
};
119
124
}
// namespace sync
125
}
// namespace xwos
126
127
#endif
/* xwos/cxx/sync/DCond.hxx */
Cond.hxx
xwos::sync::Cond
xwos::sync::Cond
条件量基类
Definition
Cond.hxx:31
xwos::sync::Cond::mCondPtr
struct xwos_cond * mCondPtr
Definition
Cond.hxx:33
xwos::sync::Cond::thaw
xwer_t thaw()
Definition
Cond.hxx:42
xwos::sync::Cond::unicast
xwer_t unicast()
Definition
Cond.hxx:39
xwos::sync::Cond::broadcast
xwer_t broadcast()
Definition
Cond.hxx:40
xwos::sync::Cond::freeze
xwer_t freeze()
Definition
Cond.hxx:41
xwos::sync::DCond
静态条件量
Definition
DCond.hxx:39
xwos::sync::DCond::freeze
xwer_t freeze()
冻结条件量
Definition
DCond.hxx:99
xwos::sync::DCond::~DCond
~DCond()
Definition
DCond.hxx:54
xwos::sync::DCond::mCtorRc
xwer_t mCtorRc
Definition
DCond.hxx:42
xwos::sync::DCond::release
xwer_t release()
Definition
DCond.hxx:117
xwos::sync::DCond::acquire
xwer_t acquire()
Definition
DCond.hxx:116
xwos::sync::DCond::thaw
xwer_t thaw()
解冻条件量
Definition
DCond.hxx:113
xwos::sync::DCond::getCtorRc
xwer_t getCtorRc()
Definition
DCond.hxx:55
xwos::sync::DCond::DCond
DCond()
构造函数
Definition
DCond.hxx:48
xwos::sync::DCond::mCondDesc
xwos_cond_d mCondDesc
Definition
DCond.hxx:41
xwos::sync::DCond::broadcast
xwer_t broadcast()
广播条件量
Definition
DCond.hxx:85
xwos::sync::DCond::unicast
xwer_t unicast()
单播条件量
Definition
DCond.hxx:70
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
Cpu.hxx:19
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