diff options
-rw-r--r-- | src/atomic_ops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/atomic_ops.c b/src/atomic_ops.c index c46e2d1..b6731a2 100644 --- a/src/atomic_ops.c +++ b/src/atomic_ops.c @@ -162,10 +162,9 @@ AO_INLINE void unlock(volatile AO_TS_t *l) #ifndef AO_USE_NO_SIGNALS static sigset_t all_sigs; static volatile AO_t initialized = 0; + static volatile AO_TS_t init_lock = AO_TS_INITIALIZER; #endif -static volatile AO_TS_t init_lock = AO_TS_INITIALIZER; - int AO_compare_and_swap_emulation(volatile AO_t *addr, AO_t old, AO_t new_val) { |