Quantcast
Channel: Purpose of _Compiler_barrier() on 32bit read - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Peter Cordes for Purpose of _Compiler_barrier() on 32bit read

_Load_seq_cst_4 is an inline function. The compiler barrier is there to block reordering with later code in the calling function this inlines into.For example, consider reading a SeqLock....

View Article



Purpose of _Compiler_barrier() on 32bit read

I have been stepping through the function calls that are involved when I assign to an atomic_long type on VS2017 with a 64bit project. I specifically wanted to see what happens when I copy an...

View Article
Browsing all 2 articles
Browse latest View live


Latest Images