4 ms·
ARMv7 works on deferred consistency between cores and memory. So, even if the write itself is "atomic", which should rather be called tear-free, there is no inh
by AstralStorm 10y ago
ARMv7 works on deferred consistency between cores and memory. So, even if the write itself is "atomic", which should rather be called tear-free, there is no inherent synchronisation of writes and reads to the same memory location.
C11 and C++11 atomics also guarantee ordering depending on the memory model parameter.
Look up Sutter's talk titled "Atomic Weapons" for more detail.
- bwindels 10y agoInteresting talk! Here's the link: https://channel9.msdn.com/Shows/Going+Deep/Cpp-and-Beyond-2012-Herb-Sutter-atomic-Weapons-1-of-2 https://channel9.msdn.com/Shows/Going+Deep/Cpp-and-Beyond-20...