ARM: Is writing/reading from int atomic?

Tony The Lion picture Tony The Lion · Feb 22, 2012 · Viewed 9.5k times · Source

On ARM architecture, unfortunately I don't know exactly what chip it is, is a 32 bit int read/write atomic?

Is there any sort of guarantees about reads/writes to basic types?

Answer

Johan Kotlinski picture Johan Kotlinski · Feb 22, 2012

It should be atomic, EXCEPT if that int is stored on a non-aligned address.