Should mutexes be used to provide concurrency when using POSIX message queues?

I use a single POSIX message queue in my application, which is accessed by several readers. Should I use mutexes in this scenario?

+4
source share
1 answer

This is similar to Is msgsnd () a thread and / or a process safe? . The short answer is that it is already thread safe, so there is no need to use mutexes.

+2
source

Source: https://habr.com/ru/post/1303081/


All Articles