FreeRTOS-Plus-POSIX mqueue.h Implementation
[
FreeRTOS-Plus-POSIX Overview]
NAME
POSIX mqueue.h - message queues
SYNOPSIS
#include "FreeRTOS_POSIX/mqueue.h"
DESCRIPTION
Symbolic Constants
Types
mqd_t
Below types are NOT defined in FreeRTOS-Plus-POSIX sys/types.h, but in sys/types.h
todo -- sys/types.h is not included in this header.
pthread_mutexattr_t |
ssize_t |
Below types are NOT defined in FreeRTOS-Plus-POSIX time.h, but in sys/types.h
todo -- size_t is not defined here, nor is stdlib.h included to simplify library dependency. Setup demo, and see how to include stdlib.h in a specific platform. Then update this line.
mq_attr structure
Structure Member |
Comment |
long mq_flags |
Message queue flags. |
long mq_maxmsg |
Maximum number of messages. |
long mq_msgsize |
Maximum message size. |
long mq_curmsgs |
Number of messages currently queued. |
Function Prototypes
int
|
mq_close( mqd_t mqdes );
|
int |
mq_getattr( mqd_t mqdes, struct mq_attr * mqstat ); |
mqd_t |
mq_open( const char * name, int oflag, mode_t mode, struct mq_attr * attr ); |
ssize_t |
mq_receive( mqd_t mqdes, char * msg_ptr, size_t msg_len, unsigned int * msg_prio ); |
int |
mq_send( mqd_t mqdes, const char * msg_ptr, size_t msg_len, unsigned msg_prio ); |
ssize_t |
mq_timedreceive( mqd_t mqdes, char * msg_ptr, size_t msg_len, unsigned * msg_prio, const struct timespec * abstime ); |
int |
mq_timedsend( mqd_t mqdes, const char * msg_ptr, size_t msg_len, unsigned msg_prio, const struct timespec * abstime ); |
int |
mq_unlink( const char * name ); |
Inclusion of the "FreeRTOS_POSIX/mqueue.h" header may make visible symbols defined in "FreeRTOS_POSIX/time.h" header.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.