Official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard.
Dependents: denki-yohou_b TestY201 Network-RTOS NTPClient_HelloWorld ... more
Queue< T, queue_sz > Class Template Reference
[Rtos]
The Queue class allow to control, send, receive, or wait for messages. More...
#include <Queue.h>
Public Member Functions | |
Queue () | |
Create and initialise a message Queue. | |
osStatus | put (T *data, uint32_t millisec=0) |
Put a message in a Queue. | |
osEvent | get (uint32_t millisec=osWaitForever) |
Get a message or Wait for a message from a Queue. |
Detailed Description
template<typename T, uint32_t queue_sz>
class rtos::Queue< T, queue_sz >
The Queue class allow to control, send, receive, or wait for messages.
A message can be a integer or pointer value to a certain type T that is send to a thread or interrupt service routine.
- Template Parameters:
-
T data type of a single message element. queue_sz maximum number of messages in queue.
Definition at line 42 of file Queue.h.
Constructor & Destructor Documentation
Generated on Tue Jul 12 2022 11:27:30 by 1.7.2