reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

projects/compiler-rt/lib/sanitizer_common/sanitizer_mutex.h
  100     atomic_store(&state_, kUnlocked, memory_order_relaxed);
  104     CHECK_EQ(atomic_load(&state_, memory_order_relaxed), kUnlocked);
  109     if (atomic_compare_exchange_strong(&state_, &cmp, kWriteLock,
  116     u32 prev = atomic_fetch_sub(&state_, kWriteLock, memory_order_release);
  122     u32 prev = atomic_fetch_add(&state_, kReadLock, memory_order_acquire);
  129     u32 prev = atomic_fetch_sub(&state_, kReadLock, memory_order_release);
  136     CHECK_NE(atomic_load(&state_, memory_order_relaxed), kUnlocked);
  154       u32 cmp = atomic_load(&state_, memory_order_relaxed);
  156           atomic_compare_exchange_weak(&state_, &cmp, kWriteLock,
  168       u32 prev = atomic_load(&state_, memory_order_acquire);