pthread_mutex, PTHREAD_MUTEX_RECURSIVE and memory-barrier

82 views Asked by At

In https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_12 it is said that recursive mutexes need not to synchronize memory.

In my understanding, they therefore do not need to establish a memory-barrier. Should I then use a memory-barrier explicitly? Say: use asm volatile ("" ::: "memory"); ?

0

There are 0 answers