XWOS API
4.0
XWOS C/C++ API参考手册
|
操作系统抽象层:信号选择器 更多...
结构体 | |
struct | xwos_sel |
XWOS API:信号选择器对象 更多... | |
struct | xwos_sel_d |
XWOS API:信号选择器对象描述符 更多... | |
宏定义 | |
#define | XWOS_SEL_NILD ((xwos_sel_d){NULL, 0,}) |
XWOS API:空的信号选择器对象描述符 | |
函数 | |
static xwer_t | xwos_sel_init (struct xwos_sel *sel, xwsz_t num, xwbmp_t *bmp, xwbmp_t *msk) |
XWOS API:静态方式初始化信号选择器 | |
static xwer_t | xwos_sel_fini (struct xwos_sel *sel) |
XWOS API:销毁静态方式初始化的信号选择器 | |
static xwer_t | xwos_sel_grab (struct xwos_sel *sel) |
XWOS API:增加信号选择器对象的引用计数 | |
static xwer_t | xwos_sel_put (struct xwos_sel *sel) |
XWOS API:减少信号选择器对象的引用计数 | |
static xwer_t | xwos_sel_create (xwos_sel_d *seld, xwsz_t num) |
XWOS API:动态方式创建信号选择器 | |
static xwer_t | xwos_sel_delete (xwos_sel_d seld) |
XWOS API:删除动态方式创建的信号选择器 | |
static xwer_t | xwos_sel_acquire (xwos_sel_d seld) |
XWOS API:检查信号选择器对象的标签并增加引用计数 | |
static xwer_t | xwos_sel_release (xwos_sel_d seld) |
XWOS API:检查对象的标签并减少引用计数 | |
static xwsq_t | xwos_sel_get_tik (struct xwos_sel *sel) |
XWOS API:获取信号选择器对象的标签 | |
static xwos_sel_d | xwos_sel_get_d (struct xwos_sel *sel) |
XWOS API:获取信号选择器对象描述符 | |
static xwer_t | xwos_sel_bind (struct xwos_sel *src, struct xwos_sel *dst, xwsq_t pos) |
XWOS API:绑定源信号选择器到目的信号选择器 | |
static xwer_t | xwos_sel_unbind (struct xwos_sel *src, struct xwos_sel *dst) |
XWOS API:从目的信号选择器上解绑源信号选择器 | |
static xwer_t | xwos_sel_get_num (struct xwos_sel *sel, xwsz_t *numbuf) |
XWOS API:获取信号选择器中的信号槽的数量 | |
static xwer_t | xwos_sel_select (struct xwos_sel *sel, xwbmp_t msk[], xwbmp_t trg[]) |
XWOS API:等待信号选择器中的 选择信号 | |
static xwer_t | xwos_sel_select_to (struct xwos_sel *sel, xwbmp_t msk[], xwbmp_t trg[], xwtm_t to) |
XWOS API:限时等待信号选择器中的 选择信号 | |
static xwer_t | xwos_sel_tryselect (struct xwos_sel *sel, xwbmp_t msk[], xwbmp_t trg[]) |
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/.
在文件 sel.h 中定义.