This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RTX: thread-safe queues?

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!

Parents
  • 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

Reply
  • 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

Children
No data