|
static void | xwmq_msg_construct (struct xwmq_msg *msg) |
| 消息槽的构造函数
|
|
static void | xwmq_construct (struct xwmq *mq) |
|
static void | xwmq_destruct (struct xwmq *mq) |
|
static xwer_t | xwmq_gc (struct xwos_object *obj) |
|
xwsq_t | xwmq_get_tik (struct xwmq *mq) |
| XWMQ API:获取消息队列对象的标签
|
|
xwer_t | xwmq_acquire (xwmq_d mqd) |
| XWMQ API:检查消息队列对象的标签并增加引用计数
|
|
xwer_t | xwmq_release (xwmq_d mqd) |
| XWMQ API:检查消息队列对象的标签并减少引用计数
|
|
xwer_t | xwmq_grab (struct xwmq *mq) |
| XWMQ API:增加消息队列对象的引用计数
|
|
xwer_t | xwmq_put (struct xwmq *mq) |
| XWMQ API:减少消息队列对象的引用计数
|
|
static xwer_t | xwmq_activate (struct xwmq *mq, struct xwmq_msg *txq, xwsz_t num, xwobj_gc_f gcfunc) |
|
xwer_t | xwmq_init (struct xwmq *mq, struct xwmq_msg *txq, xwsz_t num) |
| XWMQ API:静态方式初始化消息队列
|
|
xwer_t | xwmq_fini (struct xwmq *mq) |
| XWMQ API:销毁静态方式初始化的消息队列对象
|
|
static struct xwmq_msg * | xwmq_msg_get (struct xwmq *mq) |
| 获取一个消息槽
|
|
static void | xwmq_msg_put (struct xwmq *mq, struct xwmq_msg *msg) |
| 释放一个消息槽
|
|
xwer_t | xwmq_eq (struct xwmq *mq, xwsq_t topic, void *data) |
| XWMQ API:等待消息槽,成功后将消息发送到消息队列的 尾端 (入队)
|
|
xwer_t | xwmq_eq_to (struct xwmq *mq, xwsq_t topic, void *data, xwtm_t to) |
| XWMQ API:限时等待消息槽,成功后将消息发送到消息队列的 尾端 (入队)
|
|
xwer_t | xwmq_eq_unintr (struct xwmq *mq, xwsq_t topic, void *data) |
| XWMQ API:等待消息槽,且等待不可被中断, 成功后将消息发送到消息队列的 尾端 (入队)
|
|
xwer_t | xwmq_tryeq (struct xwmq *mq, xwsq_t topic, void *data) |
| XWMQ API:尝试获取消息槽,成功后将消息发送到消息队列的 尾端 (入队)
|
|
xwer_t | xwmq_jq (struct xwmq *mq, xwsq_t topic, void *data) |
| XWMQ API:等待消息槽,成功后将消息发送到消息队列的 首端 (插队)
|
|
xwer_t | xwmq_jq_to (struct xwmq *mq, xwsq_t topic, void *data, xwtm_t to) |
| XWMQ API:限时等待消息槽,成功后将消息发送到消息队列的 首端 (插队)
|
|
xwer_t | xwmq_jq_unintr (struct xwmq *mq, xwsq_t topic, void *data) |
| XWMQ API:等待消息槽,且等待不可被中断, 成功后将消息发送到消息队列的 首端 (插队)
|
|
xwer_t | xwmq_tryjq (struct xwmq *mq, xwsq_t topic, void *data) |
| XWMQ API:尝试获取消息槽,成功后将消息发送到消息队列的 首端 (插队)
|
|
static struct xwmq_msg * | xwmq_choose_head (struct xwmq *mq) |
| 从消息接收队列头部选择一条消息
|
|
static struct xwmq_msg * | xwmq_choose_tail (struct xwmq *mq) |
| 从消息接收队列尾部选择一条消息
|
|
xwer_t | xwmq_dq (struct xwmq *mq, xwsq_t *topic, void **databuf) |
| XWMQ API: 等待从消息队列 首端 接收一条消息
|
|
xwer_t | xwmq_dq_to (struct xwmq *mq, xwsq_t *topic, void **databuf, xwtm_t to) |
| XWMQ API: 限时等待从消息队列 首端 接收一条消息
|
|
xwer_t | xwmq_dq_unintr (struct xwmq *mq, xwsq_t *topic, void **databuf) |
| XWMQ API: 等待从消息队列 首端 接收一条消息,且等待不可被中断
|
|
xwer_t | xwmq_trydq (struct xwmq *mq, xwsq_t *topic, void **databuf) |
| XWMQ API: 尝试从消息队列 首端 接收一条消息
|
|
xwer_t | xwmq_rq (struct xwmq *mq, xwsq_t *topic, void **databuf) |
| XWMQ API: 等待从消息队列 尾端 接收一条消息
|
|
xwer_t | xwmq_rq_to (struct xwmq *mq, xwsq_t *topic, void **databuf, xwtm_t to) |
| XWMQ API: 限时等待从消息队列 尾端 接收一条消息
|
|
xwer_t | xwmq_rq_unintr (struct xwmq *mq, xwsq_t *topic, void **databuf) |
| XWMQ API: 等待从消息队列 尾端 接收一条消息,且等待不可被中断
|
|
xwer_t | xwmq_tryrq (struct xwmq *mq, xwsq_t *topic, void **databuf) |
| XWMQ API: 尝试从消息队列 尾端 接收一条消息
|
|