This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

QMSS as a general purpose queue



Hello,

I need for my implementation a FIFO and I think to use the QMSS as a FIFO resource.

My intention is to define a general purpose queue (e.g. queue number 1000), allocate 64 monolithic descriptors. No flow is configured.

The application shall push a descriptor with its data to the queue and other task will pop the descriptor form that queue and read the data in that descriptor.

My question is:

Does that implementation is thread safe - can I access the queue from different tasks without locking the access or shall I  protect the queue accessing by Semaphore?

 

Thanks