Quantcast
Channel: Is memory ordering in C++11 about main memory flush ordering? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Leeor for Is memory ordering in C++11 about main memory flush...

You didn't specify which architecture you work with, but basically each has its own memory ordering model (some times more than one that you can choose from), and that serves as a "contract". The...

View Article



Answer by Sebastian Redl for Is memory ordering in C++11 about main memory...

The C++ memory model is about the abstract machine and value visibility, not about concrete things like "main memory", "write queues" or "flushing".In your example, the memory model states that since...

View Article

Is memory ordering in C++11 about main memory flush ordering?

I'm not sure i fully understand (and i may have all wrong) the concepts of atomicity and memory ordering in C++11.Let's take this simple example single threaded :int main(){ std::atomic<int>...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images