XWOS API
4.0
XWOS C/C++ API参考手册
|
操作系统抽象层:线程栅栏 更多...
#include <xwos/standard.h>
#include <xwos/osal/jack/sync/br.h>
#include <xwos/osal/time.h>
#include <xwos/osal/sync/sel.h>
结构体 | |
struct | xwos_br |
XWOS API:线程栅栏 更多... | |
struct | xwos_br_d |
XWOS API:线程栅栏对象描述符 更多... | |
宏定义 | |
#define | XWOS_BR_NILD ((xwos_br_d){NULL, 0,}) |
XWOS API:空的线程栅栏对象描述符 | |
函数 | |
static xwer_t | xwos_br_init (struct xwos_br *br, xwsz_t num, xwbmp_t *bmp, xwbmp_t *msk) |
XWOS API:静态方式初始化线程栅栏 | |
static xwer_t | xwos_br_fini (struct xwos_br *br) |
XWOS API:销毁静态方式初始化的线程栅栏 | |
static xwer_t | xwos_br_grab (struct xwos_br *br) |
XWOS API:增加线程栅栏对象的引用计数 | |
static xwer_t | xwos_br_put (struct xwos_br *br) |
XWOS API:减少线程栅栏对象的引用计数 | |
static xwer_t | xwos_br_create (xwos_br_d *brd, xwsz_t num) |
XWOS API:动态方式创建线程栅栏 | |
static xwer_t | xwos_br_delete (xwos_br_d brd) |
XWOS API:删除动态方式创建的线程栅栏 | |
static xwer_t | xwos_br_acquire (xwos_br_d brd) |
XWOS API:检查线程栅栏对象的标签并增加引用计数 | |
static xwer_t | xwos_br_release (xwos_br_d brd) |
XWOS API:检查对象的标签并减少引用计数 | |
static xwsq_t | xwos_br_get_tik (struct xwos_br *br) |
XWOS API:获取线程栅栏对象的标签 | |
static xwos_br_d | xwos_br_get_d (struct xwos_br *br) |
XWOS API:获取线程栅栏对象描述符 | |
static xwer_t | xwos_br_bind (struct xwos_br *br, struct xwos_sel *sel, xwsq_t pos) |
XWOS API:绑定线程栅栏到信号选择器 | |
static xwer_t | xwos_br_unbind (struct xwos_br *br, struct xwos_sel *sel) |
XWOS API:从信号选择器上解绑线程栅栏 | |
static xwer_t | xwos_br_get_num (struct xwos_br *br, xwsz_t *numbuf) |
XWOS API:获取线程栅栏中线程槽数量 | |
static xwer_t | xwos_br_wait (struct xwos_br *br) |
XWOS API:等待所有线程到达栅栏 | |
static xwer_t | xwos_br_wait_to (struct xwos_br *br, xwtm_t to) |
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/.
在文件 br.h 中定义.