Quantcast
Channel: What is the (slight) difference on the relaxing atomic rules? - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by Peter Cordes for What is the (slight) difference on the relaxing...

If you "relax" some ordering requirements of seq_cst, there's mo_acq_rel (and pure acquire and pure release).Even more relaxed than that is mo_relaxed; no ordering wrt. anything else, just...

View Article



Answer by curiousguy for What is the (slight) difference on the relaxing...

And if that is true, and the default seq_cst means both, doesn't that mean a full fenceIt absolutely does not mean both or "full fence" whatever that is.seq_cst impliesacquire only on load operations...

View Article

Answer by Cubbi for What is the (slight) difference on the relaxing atomic...

It can be a bit confusing to call myatomic.load(std::memory_order_acquire); a "relaxed atomic" load, since there is a std::memory_order_relaxed. Some people describe any order weaker than seq_cst as...

View Article

What is the (slight) difference on the relaxing atomic rules?

After seeing Herb Sutters excellent talk about "atomic weapons" I got a bit confused about the Relaxed Atomics examples.I took with me that an atomic in the C++ Memory Model (SC-DRF = Sequentially...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images