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

References

projects/compiler-rt/lib/tsan/rtl/tsan_mutex.cpp
  219   atomic_store(&state_, kUnlocked, memory_order_relaxed);
  223   CHECK_EQ(atomic_load(&state_, memory_order_relaxed), kUnlocked);
  231   if (atomic_compare_exchange_strong(&state_, &cmp, kWriteLock,
  235     if (atomic_load(&state_, memory_order_relaxed) == kUnlocked) {
  237       if (atomic_compare_exchange_weak(&state_, &cmp, kWriteLock,
  249   uptr prev = atomic_fetch_sub(&state_, kWriteLock, memory_order_release);
  261   uptr prev = atomic_fetch_add(&state_, kReadLock, memory_order_acquire);
  265     prev = atomic_load(&state_, memory_order_acquire);
  276   uptr prev = atomic_fetch_sub(&state_, kReadLock, memory_order_release);
  286   CHECK_NE(atomic_load(&state_, memory_order_relaxed), 0);