XWOS API
4.0
XWOS C/C++ API参考手册
|
操作系统抽象层:条件量 更多...
#include <xwos/standard.h>
#include <xwos/osal/jack/sync/cond.h>
#include <xwos/osal/time.h>
#include <xwos/osal/sync/sel.h>
#include <xwos/osal/lock/mtx.h>
结构体 | |
struct | xwos_cond |
XWOS API:条件量对象 更多... | |
struct | xwos_cond_d |
XWOS API:条件量对象描述符 更多... | |
宏定义 | |
#define | XWOS_COND_NILD ((xwos_cond_d){NULL, 0,}) |
XWOS API:空的条件量对象描述符 | |
函数 | |
static xwer_t | xwos_cond_init (struct xwos_cond *cond) |
XWOS API:静态方式初始化条件量对象 | |
static xwer_t | xwos_cond_fini (struct xwos_cond *cond) |
XWOS API:销毁静态方式初始化的条件量对象 | |
static xwer_t | xwos_cond_grab (struct xwos_cond *cond) |
XWOS API:增加条件量对象的引用计数 | |
static xwer_t | xwos_cond_put (struct xwos_cond *cond) |
XWOS API:减少条件量对象的引用计数 | |
static xwer_t | xwos_cond_create (xwos_cond_d *condd) |
XWOS API:动态方式创建条件量对象 | |
static xwer_t | xwos_cond_delete (xwos_cond_d condd) |
XWOS API:删除动态方式创建的条件量对象 | |
static xwer_t | xwos_cond_acquire (xwos_cond_d condd) |
XWOS API:检查条件量对象的标签并增加引用计数 | |
static xwer_t | xwos_cond_release (xwos_cond_d condd) |
XWOS API:检查对象的标签并减少引用计数 | |
static xwsq_t | xwos_cond_get_tik (struct xwos_cond *cond) |
XWOS API:获取条件量对象的标签 | |
static xwos_cond_d | xwos_cond_get_d (struct xwos_cond *cond) |
XWOS API:获取条件量对象描述符 | |
static xwer_t | xwos_cond_bind (struct xwos_cond *cond, struct xwos_sel *sel, xwsq_t pos) |
XWOS API:绑定条件量对象到信号选择器 | |
static xwer_t | xwos_cond_unbind (struct xwos_cond *cond, struct xwos_sel *sel) |
XWOS API:从信号选择器上解绑条件量对象 | |
static xwer_t | xwos_cond_freeze (struct xwos_cond *cond) |
XWOS API:冻结条件量对象 | |
static xwer_t | xwos_cond_thaw (struct xwos_cond *cond) |
XWOS API:解冻条件量对象 | |
static xwer_t | xwos_cond_broadcast (struct xwos_cond *cond) |
XWOS API:广播条件量对象 | |
static xwer_t | xwos_cond_unicast (struct xwos_cond *cond) |
XWOS API:单播条件量对象 | |
static xwer_t | xwos_cond_wait (struct xwos_cond *cond, union xwos_ulock lock, xwsq_t lktype, void *lkdata, xwsq_t *lkst) |
XWOS API:等待条件量 | |
static xwer_t | xwos_cond_wait_to (struct xwos_cond *cond, union xwos_ulock lock, xwsq_t lktype, void *lkdata, xwtm_t to, xwsq_t *lkst) |
XWOS API:限时等待条件量 | |
static xwer_t | xwos_cond_wait_unintr (struct xwos_cond *cond, union xwos_ulock lock, xwsq_t lktype, void *lkdata, xwsq_t *lkst) |
XWOS API:不可中断地等待条件量 | |
操作系统抽象层:条件量
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
在文件 cond.h 中定义.