Home
last modified time | relevance | path

Searched refs:MtxSleeping (Results 1 – 4 of 4) sorted by relevance

/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_fuchsia.cpp115 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()
Dsanitizer_rtems.cpp114 enum MutexState { MtxUnlocked = 0, MtxLocked = 1, MtxSleeping = 2 }; enumerator
125 while (atomic_exchange(m, MtxSleeping, memory_order_acquire) != MtxUnlocked) { in Lock()
Dsanitizer_linux.cpp637 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/
Dsanitizer_linux.cc515 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()