Use of 2 mutex for buffer: * one for the enqueue * one for the dequeue The number of items in the buffer is the only variable which can be accessed by both at the same time. This improve the performance of the communication and reduce the possibility of priority inversion between the producer and the consummer thread.
Use of 2 mutex for buffer:
* one for the enqueue
* one for the dequeue
The number of items in the buffer is the only variable which can be accessed
by both at the same time.
This improve the performance of the communication and reduce the possibility
of priority inversion between the producer and the consummer thread.

P-p-H-d/mlib,P-p-H-d/mlib