mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
26af3c7e35
Use compiler provided atomic builtins as a 'backend' for MySQL's atomic primitives. The builtins are available on a handful of platforms and compilers. configure.in: Check if the compiler provides atomic builtins and that __sync_lock_test_and_set stores the correct value. include/atomic/nolock.h: Use the atomic builtins if available. include/atomic/gcc_builtins.h: Implement the atomic ADD, SWAP, CAS, STORE (or operation optimized away) and LOAD primitives using atomic builtins provided by the compiler. |
||
---|---|---|
.. | ||
gcc_builtins.h | ||
nolock.h | ||
rwlock.h | ||
x86-gcc.h | ||
x86-msvc.h |