Home | History | Annotate | Download | only in sanitizer_common

Lines Matching defs:state_

26     atomic_store(&state_, 0, memory_order_relaxed);
36 return atomic_exchange(&state_, 1, memory_order_acquire) == 0;
40 atomic_store(&state_, 0, memory_order_release);
44 CHECK_EQ(atomic_load(&state_, memory_order_relaxed), 1);
48 atomic_uint8_t state_;
56 if (atomic_load(&state_, memory_order_relaxed) == 0
57 && atomic_exchange(&state_, 1, memory_order_acquire) == 0)
96 atomic_store(&state_, kUnlocked, memory_order_relaxed);
100 CHECK_EQ(atomic_load(&state_, memory_order_relaxed), kUnlocked);
105 if (atomic_compare_exchange_strong(&state_, &cmp, kWriteLock,
112 u32 prev = atomic_fetch_sub(&state_, kWriteLock, memory_order_release);
118 u32 prev = atomic_fetch_add(&state_, kReadLock, memory_order_acquire);
125 u32 prev = atomic_fetch_sub(&state_, kReadLock, memory_order_release);
132 CHECK_NE(atomic_load(&state_, memory_order_relaxed), kUnlocked);
136 atomic_uint32_t state_;
150 u32 cmp = atomic_load(&state_, memory_order_relaxed);
152 atomic_compare_exchange_weak(&state_, &cmp, kWriteLock,
164 u32 prev = atomic_load(&state_, memory_order_acquire);