Quantcast
Channel: C++11: the difference between memory_order_relaxed and memory_order_consume - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Peter Cordes for C++11: the difference between memory_order_relaxed...

Can one replace memory_order_consume with memory_order_relaxed in the example above?Safely in ISO C++: no.In practice on most implementations for most ISAs, often yes. It will normally compile to asm...

View Article



Answer by Margaret Bloom for C++11: the difference between...

Question 1No.memory_order_relaxed imposes no memory order at all:Relaxed operation: there are no synchronization or ordering constraints, only atomicity is required of this operation.While...

View Article

C++11: the difference between memory_order_relaxed and memory_order_consume

I am now learning C++11 memory order model and would like to understand the difference between memory_order_relaxed and memory_order_consume.To be specific, I am looking for a simple example where one...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images