1 #ifndef ATOMIC_NOLOCK_INCLUDED
2 #define ATOMIC_NOLOCK_INCLUDED
19 #if defined(__i386__) || defined(_MSC_VER) || defined(__x86_64__) \
20 || defined(HAVE_GCC_ATOMIC_BUILTINS) \
21 || defined(HAVE_SOLARIS_ATOMIC)
23 # ifdef MY_ATOMIC_MODE_DUMMY
24 # define LOCK_prefix ""
26 # define LOCK_prefix "lock"
39 # if defined(_MSV_VER)
40 # include "generic-msvc.h"
42 # if defined(HAVE_SOLARIS_ATOMIC)
44 # elif defined(HAVE_GCC_ATOMIC_BUILTINS)
45 # include "gcc_builtins.h"
46 # elif defined(__i386__) || defined(__x86_64__)
49 # elif defined(HAVE_SOLARIS_ATOMIC)
54 #if defined(make_atomic_cas_body)
60 #define my_atomic_rwlock_destroy(name)
61 #define my_atomic_rwlock_init(name)
62 #define my_atomic_rwlock_rdlock(name)
63 #define my_atomic_rwlock_wrlock(name)
64 #define my_atomic_rwlock_rdunlock(name)
65 #define my_atomic_rwlock_wrunlock(name)