Searched refs:MtxUnlocked (Results 1 – 4 of 4) sorted by relevance
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_rtems.cpp | 114 enum MutexState { MtxUnlocked = 0, MtxLocked = 1, MtxSleeping = 2 }; enumerator 123 if (atomic_exchange(m, MtxLocked, memory_order_acquire) == MtxUnlocked) in Lock() 125 while (atomic_exchange(m, MtxSleeping, memory_order_acquire) != MtxUnlocked) { in Lock() 132 u32 v = atomic_exchange(m, MtxUnlocked, memory_order_release); in Unlock() 133 CHECK_NE(v, MtxUnlocked); in Unlock() 138 CHECK_NE(MtxUnlocked, atomic_load(m, memory_order_relaxed)); in CheckLocked()
|
D | sanitizer_fuchsia.cpp | 115 enum MutexState : int { MtxUnlocked = 0, MtxLocked = 1, MtxSleeping = 2 }; enumerator 130 if (atomic_exchange(m, MtxLocked, memory_order_acquire) == MtxUnlocked) in Lock() 132 while (atomic_exchange(m, MtxSleeping, memory_order_acquire) != MtxUnlocked) { in Lock() 143 u32 v = atomic_exchange(m, MtxUnlocked, memory_order_release); in Unlock() 144 CHECK_NE(v, MtxUnlocked); in Unlock() 153 CHECK_NE(MtxUnlocked, atomic_load(m, memory_order_relaxed)); in CheckLocked()
|
D | sanitizer_linux.cpp | 635 MtxUnlocked = 0, enumerator 647 if (atomic_exchange(m, MtxLocked, memory_order_acquire) == MtxUnlocked) in Lock() 649 while (atomic_exchange(m, MtxSleeping, memory_order_acquire) != MtxUnlocked) { in Lock() 663 u32 v = atomic_exchange(m, MtxUnlocked, memory_order_release); in Unlock() 664 CHECK_NE(v, MtxUnlocked); in Unlock() 678 CHECK_NE(MtxUnlocked, atomic_load(m, memory_order_relaxed)); in CheckLocked()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_linux.cc | 513 MtxUnlocked = 0, enumerator 525 if (atomic_exchange(m, MtxLocked, memory_order_acquire) == MtxUnlocked) in Lock() 527 while (atomic_exchange(m, MtxSleeping, memory_order_acquire) != MtxUnlocked) { in Lock() 538 u32 v = atomic_exchange(m, MtxUnlocked, memory_order_relaxed); in Unlock() 539 CHECK_NE(v, MtxUnlocked); in Unlock() 551 CHECK_NE(MtxUnlocked, atomic_load(m, memory_order_relaxed)); in CheckLocked()
|