Quantcast
Channel: Is std::mutex sequentially consistent? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by curiousguy for Is std::mutex sequentially consistent?

Is it possible to observe the modifications on fA and fB in different orders in different threads C and D?The basic idea of a lock "acquiring" the "released" state (and side effect history) of an...

View Article



Answer by Joseph Ireland for Is std::mutex sequentially consistent?

Yes, that is allowed That output isn't possible, but std::mutex is not necessarily sequentially consistent. Acquire/release is enough to rule out that behaviour. std::mutex is not defined in the...

View Article

Is std::mutex sequentially consistent?

Say, I have two threads A and B writing to a global Boolean variables fA and fB respectively which are initially set to false and are protected by std::mutex objects mA and mB respectively:// Thread...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images