Quantcast
Channel: Memory order consume usage in C11 - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Peter Cordes for Memory order consume usage in C11

consume is cheaper than acquire. All CPUs (except DEC Alpha AXP's famously weak memory model1) do it for free, unlike acquire. (Except on x86 and SPARC-TSO, where the hardware has acq/rel memory...

View Article



Answer by janneb for Memory order consume usage in C11

memory_order_consume is currently underspecified, and there is some ongoing work to fix it. Currently AFAIK all implementations implicitly promote it to memory_order_acquire.

View Article

Memory order consume usage in C11

I read about the carries a dependency relation and dependency-ordered before that uses one in its definition 5.1.2.4(p16):An evaluation A is dependency-ordered before an evaluation B if: —A performs a...

View Article
Browsing all 3 articles
Browse latest View live


Latest Images