Message Buffers API wrapped in a mutex for multiple producers?

hassan789 wrote on Friday, December 29, 2017:

Hi,
Per you documentation here:
https://www.freertos.org/xMessageBufferSend.html

I can call wrap the xMessageBufferSend() in critical section, with a block time of 0 for use with multiple producer.
Instead of this, can I simply wrap in a recursive mutex, and still keep a non-0 block time?

richard_damon wrote on Friday, December 29, 2017:

I asked a similar question awhile ago (for StreamBuffers, but MessgeBuffers are really just StreamBuffers with a bit of additional logic to handle Messages), and was told that with a mutex, as long as only one task can end up blocking on the queue at a time, things will be fine.