CMSIS-RTOS2  Version 2.0.0
Real-Time Operating System: API and RTX Reference Implementation
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Message Queue Configuration

The CMSIS-RTOS RTX provides several parameters to configure the Message Queue functions.

Object-specific Memory Allocation

See Object-specific Memory Pools.

  • When Object-specific Memory is used, the number of queues for all Message Queue objects is specified by OS_MSGQUEUE_NUM.
  • The total storage size reserved for all queues is configured in OS_MSGQUEUE_DATA_SIZE.

MessageQueue Configuration Options

config_wizard_msgQueue.png
RTX_Config.c: Message Queue Configuration
Name #define Description
Object specific Memory allocation OS_MSGQUEUE_OBJ_MEM Enables object specific memory allocation. See Object-specific Memory Pools.
Number of Message Queue objects OS_MSGQUEUE_NUM Defines maximum number of objects that can be active at the same time. Applies to objects with system provided memory for control blocks. Value range is [1-1000].
Data Storage Memory size [bytes] OS_MSGQUEUE_DATA_SIZE Defines the combined data storage memory size. Applies to objects with system provided memory for data storage. Default value is 0. Value range is [0-1073741824], in multiples of 8.