Could someone update me on the status of "mixing OpenMP with other threading models"?
(I've read some posts on the topic, but all are pretty old by now.)
Under Linux, when a library is said to be thread-safe (or conditionally safe), it is generally assumed that accesses to data shared between threads (if any) has been serialized with pthread mutexes (correct me if I'm wrong). If I use OpenMP, can I still trust traditional thread safety, or should I just ignore from here on all advertisement about thread safety that involve mutual exclusion? In other words, is there any guarantee that a library that provides a certain level of thread safety with my OS' default threading model (pthread) will provide the same level of safety with OpenMP? Guarantees either from the OpenMP specs or from GCC would be very welcome.