Difference between relaxed and acquire for os_atomic_load?

Does anybody can elaborate the difference between the os_atomic_load(,,,, acquire) and os_atomic_load(..., relaxed)?

Replies

C atomics are not an Apple-specific thing, but defined by the C standard. Given that, you can find tonnes of info about them from non-Apple sources. This includes both the standard and various tutorials that explain that standard.

Note The C standard effectively

#include
d its atomic architecture from the C++ standard. A lot of the best info out there is for C++, with a simple mapping to get you to C.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"