If I lock a std::mutex will I always get a memory fence? I am unsure if it implies or enforces you to get the fence.
std::mutex
Update:
Found this referen
Unlocking a mutex synchronizes with locking the mutex. I don't know what options the compiler has for the implementation, but you get the same effect of a fence.