Searched refs:MtxSleeping (Results 1 – 4 of 4) sorted by relevance
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_fuchsia.cpp | 115 enum MutexState : int { MtxUnlocked = 0, MtxLocked = 1, MtxSleeping = 2 }; enumerator 132 while (atomic_exchange(m, MtxSleeping, memory_order_acquire) != MtxUnlocked) { in Lock() 134 _zx_futex_wait(reinterpret_cast<zx_futex_t *>(m), MtxSleeping, in Lock() 145 if (v == MtxSleeping) { in Unlock()
|
D | sanitizer_rtems.cpp | 114 enum MutexState { MtxUnlocked = 0, MtxLocked = 1, MtxSleeping = 2 }; enumerator 125 while (atomic_exchange(m, MtxSleeping, memory_order_acquire) != MtxUnlocked) { in Lock()
|
D | sanitizer_linux.cpp | 637 MtxSleeping = 2 enumerator 649 while (atomic_exchange(m, MtxSleeping, memory_order_acquire) != MtxUnlocked) { in Lock() 651 _umtx_op(m, UMTX_OP_WAIT_UINT, MtxSleeping, 0, 0); in Lock() 655 internal_syscall(SYSCALL(futex), (uptr)m, FUTEX_WAIT_PRIVATE, MtxSleeping, in Lock() 665 if (v == MtxSleeping) { in Unlock()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_linux.cc | 515 MtxSleeping = 2 enumerator 527 while (atomic_exchange(m, MtxSleeping, memory_order_acquire) != MtxUnlocked) { in Lock() 529 _umtx_op(m, UMTX_OP_WAIT_UINT, MtxSleeping, 0, 0); in Lock() 531 internal_syscall(SYSCALL(futex), (uptr)m, FUTEX_WAIT, MtxSleeping, 0, 0, 0); in Lock() 540 if (v == MtxSleeping) { in Unlock()
|