ARM: Is writing/reading from int atomic?

允我心安 提交于 2019-11-30 22:54:21

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/9399026/arm-is-writing-reading-from-int-atomic

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!