问题
On windows, if align is set to 4 bytes (this is by default in project option) then reading/writing to an integer is atomic. Is it the same on ios/android ?
if not atomic, can i have an exception or a misc error (other than obtening the wrong value) if 2 threads read and write at the same time the same integer value ?
来源:https://stackoverflow.com/questions/39987850/is-reading-writing-an-integer-4-bytes-atomic-on-ios-android-like-on-win32-win6