Searched refs:futex_word (Results 1 – 2 of 2) sorted by relevance
/external/llvm-project/libc/src/threads/linux/ |
D | call_once.cpp | 26 FutexData *futex_word = reinterpret_cast<FutexData *>(flag); in LLVM_LIBC_ENTRYPOINT() local 38 if (::atomic_compare_exchange_strong(futex_word, ¬_called, START)) { in LLVM_LIBC_ENTRYPOINT() 40 auto status = ::atomic_exchange(futex_word, FINISH); in LLVM_LIBC_ENTRYPOINT() 42 __llvm_libc::syscall(SYS_futex, futex_word, FUTEX_WAKE_PRIVATE, in LLVM_LIBC_ENTRYPOINT() 50 if (::atomic_compare_exchange_strong(futex_word, &status, WAITING) || in LLVM_LIBC_ENTRYPOINT() 52 __llvm_libc::syscall(SYS_futex, futex_word, FUTEX_WAIT_PRIVATE, in LLVM_LIBC_ENTRYPOINT()
|
D | mtx_unlock.cpp | 22 FutexData *futex_word = reinterpret_cast<FutexData *>(mutex->__internal_data); in LLVM_LIBC_ENTRYPOINT() local 25 if (atomic_compare_exchange_strong(futex_word, &mutex_status, MS_Free)) { in LLVM_LIBC_ENTRYPOINT() 27 __llvm_libc::syscall(SYS_futex, futex_word, FUTEX_WAKE_PRIVATE, 1, 0, 0, in LLVM_LIBC_ENTRYPOINT() 34 if (atomic_compare_exchange_strong(futex_word, &mutex_status, MS_Free)) in LLVM_LIBC_ENTRYPOINT()
|