Message queue attributes. More...
#include <cmsis-plus/rtos/os.h>
Public Member Functions | |
Constructors & Destructor | |
constexpr | attributes () |
Construct a message queue attributes object instance. | |
attributes (const attributes &)=default | |
attributes (attributes &&)=default | |
attributes & | operator= (const attributes &)=default |
attributes & | operator= (attributes &&)=default |
~attributes ()=default | |
Destruct the message queue attributes object instance. | |
Public Attributes | |
Public Member Variables | |
void * | mq_queue_address = nullptr |
Address of the user defined storage for the message queue. | |
std::size_t | mq_queue_size_bytes = 0 |
Size of the user defined storage for the message queue. | |
Public Member Variables | |
rtos::clock * | clock = nullptr |
Attribute with the address of the clock to be used for timeouts. | |
Message queue attributes.
Allow to assign a name and custom attributes (like a static address) to the message queue.
To simplify access, the member variables are public and do not require accessors or mutators.
If the attributes are modified after the message_queue creation, the message_queue attributes shall not be affected.
mq_attr
from <mqueue.h> (IEEE Std 1003.1, 2013 Edition). Definition at line 151 of file os-mqueue.h.
|
constexpr |
Construct a message queue attributes object instance.
Definition at line 1274 of file os-mqueue.h.
|
default |
|
default |
|
default |
Destruct the message queue attributes object instance.
|
default |
|
default |
|
inherited |
Attribute with the address of the clock to be used for timeouts.
It may be one of os::rtos::sysclock
, os::rtos::rtclock
, or any other user object derived from class os::rtos::clock
.
If nullptr
, the default clock is os::rtos::sysclock
.
Definition at line 615 of file os-decls.h.
void * os::rtos::message_queue::attributes::mq_queue_address = nullptr |
Address of the user defined storage for the message queue.
Set this variable to a user defined memory area large enough to store the message queue. Usually this is a statically allocated array of structures.
The default value is nullptr
, which means there is no user defined message queue.
Definition at line 197 of file os-mqueue.h.
std::size_t os::rtos::message_queue::attributes::mq_queue_size_bytes = 0 |
Size of the user defined storage for the message queue.
The message queue size must match exactly the allocated size. It is used for validation; when the message queue is initialised, this size must be large enough to accommodate the desired message queue.
If the mq_queue_address is nullptr
, this variable is not checked, but it is recommended to leave it zero.
Definition at line 202 of file os-mqueue.h.