Hi All,
Apologies for what may be a newbie question.
We're evaluating whether to use RL-ARM / RTX on a STM32F10x. It seems like a good value, but queues seem noticeably missing.
I imagine I could implement a thread-safe queue / ring buffer on top of the mailbox, but I wonder if there is a canonical implementation of queue for RTX / RL-ARM that i could just use.
thanks!
Hi Jeevan,
the mailbox object of RTX is nothing but a thread-safe FIFO queue which contains pointers to void, i.e., 4 bytes.
With that you can easily build a FIFO queue of almost anything.
With proper casting and parameter passing you can use the 4 bytes to store an uint32_t value with no additional code but the call to os_mbx_* RTX functions.
Good work,
Marco