mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
9836fd5d13
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. |
||
---|---|---|
.. | ||
gcc_builtins.h | ||
generic-msvc.h | ||
nolock.h | ||
rwlock.h | ||
solaris.h | ||
x86-gcc.h |