Lines Matching refs:ftx
41 static inline __always_inline int __futex(volatile void* ftx, int op, int value, in __futex() argument
45 int result = syscall(__NR_futex, ftx, op, value, timeout, NULL, bitset); in __futex()
53 static inline int __futex_wake(volatile void* ftx, int count) { in __futex_wake() argument
54 return __futex(ftx, FUTEX_WAKE, count, nullptr, 0); in __futex_wake()
57 static inline int __futex_wake_ex(volatile void* ftx, bool shared, int count) { in __futex_wake_ex() argument
58 return __futex(ftx, shared ? FUTEX_WAKE : FUTEX_WAKE_PRIVATE, count, nullptr, 0); in __futex_wake_ex()
61 static inline int __futex_wait(volatile void* ftx, int value, const timespec* timeout) { in __futex_wait() argument
62 return __futex(ftx, FUTEX_WAIT, value, timeout, 0); in __futex_wait()
65 static inline int __futex_wait_ex(volatile void* ftx, bool shared, int value) { in __futex_wait_ex() argument
66 return __futex(ftx, (shared ? FUTEX_WAIT_BITSET : FUTEX_WAIT_BITSET_PRIVATE), value, nullptr, in __futex_wait_ex()
70 __LIBC_HIDDEN__ int __futex_wait_ex(volatile void* ftx, bool shared, int value,
73 static inline int __futex_pi_unlock(volatile void* ftx, bool shared) { in __futex_pi_unlock() argument
74 return __futex(ftx, shared ? FUTEX_UNLOCK_PI : FUTEX_UNLOCK_PI_PRIVATE, 0, nullptr, 0); in __futex_pi_unlock()
77 __LIBC_HIDDEN__ int __futex_pi_lock_ex(volatile void* ftx, bool shared, bool use_realtime_clock,