XWOS API
4.0
XWOS C/C++ API参考手册
|
消息队列:模块接口 更多...
#include <xwos/standard.h>
#include <xwos/lib/object.h>
#include <xwos/lib/bclst.h>
#include <xwos/mm/memslice.h>
#include <xwos/osal/lock/spinlock.h>
#include <xwos/osal/sync/sem.h>
#include <xwos/osal/sync/sel.h>
结构体 | |
struct | xwmq_msg |
消息队列的消息 更多... | |
struct | xwmq |
消息队列对象 更多... | |
struct | xwmq_d |
消息队列对象描述符 更多... | |
函数 | |
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:销毁静态方式初始化的消息队列对象 | |
xwer_t | xwmq_grab (struct xwmq *mq) |
XWMQ API:增加消息队列对象的引用计数 | |
xwer_t | xwmq_put (struct xwmq *mq) |
XWMQ API:减少消息队列对象的引用计数 | |
xwsq_t | xwmq_get_tik (struct xwmq *mq) |
XWMQ API:获取消息队列对象的标签 | |
static xwmq_d | xwmq_get_d (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_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:尝试获取消息槽,成功后将消息发送到消息队列的 首端 (插队) | |
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: 尝试从消息队列 尾端 接收一条消息 | |
消息队列:模块接口
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/.
在文件 mif.h 中定义.