RT-Thread RTOS  1.2.0
An open source embedded real-time operating system
rt_messagequeue Struct Reference

#include <rtdef.h>

Data Fields

struct rt_ipc_object parent
 
void * msg_pool
 
rt_uint16_t msg_size
 
rt_uint16_t max_msgs
 
rt_uint16_t entry
 
void * msg_queue_head
 
void * msg_queue_tail
 
void * msg_queue_free
 
rt_list_t suspend_sender_thread
 

Detailed Description

message queue structure

Field Documentation

◆ parent

struct rt_ipc_object rt_messagequeue::parent

inherit from ipc_object

◆ msg_pool

void* rt_messagequeue::msg_pool

start address of message queue

◆ msg_size

rt_uint16_t rt_messagequeue::msg_size

message size of each message

◆ max_msgs

rt_uint16_t rt_messagequeue::max_msgs

max number of messages

◆ entry

rt_uint16_t rt_messagequeue::entry

index of messages in the queue

◆ msg_queue_head

void* rt_messagequeue::msg_queue_head

list head

◆ msg_queue_tail

void* rt_messagequeue::msg_queue_tail

list tail

◆ msg_queue_free

void* rt_messagequeue::msg_queue_free

pointer indicated the free node of queue

◆ suspend_sender_thread

rt_list_t rt_messagequeue::suspend_sender_thread

sender thread suspended on this message queue