13#ifndef __xwos_osal_sync_br_h__
14#define __xwos_osal_sync_br_h__
96#define XWOS_BR_NILD ((xwos_br_d){NULL, 0,})
114 return xwosdl_br_init(&br->
osbr, num, bmp, msk);
129 return xwosdl_br_fini(&br->
osbr);
148 return xwosdl_br_grab(&br->
osbr);
167 return xwosdl_br_put(&br->
osbr);
184 return xwosdl_br_create((xwosdl_br_d *)brd, num);
199 return xwosdl_br_delete(&brd.
br->
osbr, brd.
tik);
216 return xwosdl_br_acquire(&brd.
br->
osbr, brd.
tik);
233 return xwosdl_br_release(&brd.
br->
osbr, brd.
tik);
246 return xwosdl_br_get_tik(&br->
osbr);
262 brd.
tik = xwosdl_br_get_tik(&br->
osbr);
286 return xwosdl_br_bind(&br->
osbr, &sel->
ossel, pos);
303 return xwosdl_br_unbind(&br->
osbr, &sel->
ossel);
319 return xwosdl_br_get_num(&br->
osbr, numbuf);
337 return xwosdl_br_wait(&br->
osbr);
362 return xwosdl_br_wait_to(&br->
osbr, to);
#define __xwos_inline_api
xws64_t xwtm_t
XWOS系统时间 (有符号)
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_init(struct xwos_br *br, xwsz_t num, xwbmp_t *bmp, xwbmp_t *msk)
XWOS API:静态方式初始化线程栅栏
static xwer_t xwos_br_wait_to(struct xwos_br *br, xwtm_t to)
XWOS API:限时等待所有线程到达栅栏
static xwer_t xwos_br_acquire(xwos_br_d brd)
XWOS API:检查线程栅栏对象的标签并增加引用计数
static xwer_t xwos_br_unbind(struct xwos_br *br, struct xwos_sel *sel)
XWOS API:从信号选择器上解绑线程栅栏
static xwer_t xwos_br_wait(struct xwos_br *br)
XWOS API:等待所有线程到达栅栏
static xwer_t xwos_br_grab(struct xwos_br *br)
XWOS API:增加线程栅栏对象的引用计数
static xwsq_t xwos_br_get_tik(struct xwos_br *br)
XWOS API:获取线程栅栏对象的标签
static xwer_t xwos_br_get_num(struct xwos_br *br, xwsz_t *numbuf)
XWOS API:获取线程栅栏中线程槽数量
static xwer_t xwos_br_fini(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_put(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_release(xwos_br_d brd)
XWOS API:检查对象的标签并减少引用计数