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 ArticleAnswer 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 ArticleC++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