mirror of
https://github.com/MariaDB/server.git
synced 2025-11-28 17:36:30 +03:00
my_atomic_load() is implemented as __sync_fetch_and_or(var, 0) which writes or-ed value back to var. Memory writes as such have worse performance and scalability than reads. gcc 4.7 and up offers better facility for atomic loads/stores. Use it whenever it is available.