mirror of
https://github.com/boostorg/atomic.git
synced 2026-02-02 08:22:08 +00:00
There is no guarantee of atomicity of plain loads and stores of anything larger than a byte on an arbitrary hardware architecture. However, all modern architectures seem to guarantee atomicity of loads and stores of suitably aligned objects ate least up to a pointer size, so we use that as the threshold. For larger objects we have to use intrinsics to guarantee atomicity.