Problem about Queue safety in multiply thread.

Hi ,When I used the queue in FreeRTOS, I am not sure whether the queue is safe in different threads. For example, When I receive some items from the queue in thread A, Can I send other items to the queue in thread B? Best wishes, Kang Hu

Problem about Queue safety in multiply thread.

Yes – queues are designed to have many different readers and many different writers. The only FreeRTOS communication primitives where that is not the case are stream buffers and message buffers (introduced in FreeRTOS V10) where you can only have one reader and one writer – but the reader and writer can be different tasks or interrupts.