Quantcast
Channel: Does a single atomic operation marked as std::memory_order_seq_cst trigger sequential consistency everywhere? - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by walnut for Does a single atomic operation marked as...

No, memory_order_seq_cst only guarantees that there is a total order of all memory_order_seq_cst atomic accesses/fences, see [atomics.order]/3 of the C++17 standard final draft. It does not impose that...

View Article



Does a single atomic operation marked as std::memory_order_seq_cst trigger...

Sequential consistency imposes a global order of all atomic operations on all threads. As far as I know, this means that threads will behave as specified in the source code, with no reordering. All...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images