mirror of
https://github.com/MariaDB/server.git
synced 2025-12-03 05:41:09 +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.