Quantcast
Channel: Optimizations around atomic load stores in C++ - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Nate Eldredge for Optimizations around atomic load stores in C++

Q1Generally, yes. Any load or store that follows (in program order) an acquire load, must not become visible before it.Here is an example where it matters:#include <atomic>#include...

View Article



Optimizations around atomic load stores in C++

I have read about std::memory_order in C++ and understood partially. But I still had some doubts around it.Explanation on std::memory_order_acquire says that, no reads or writes in the current thread...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images