/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/internal/ |
D | futex.h | 61 #ifndef SYS_futex 62 #define SYS_futex __NR_futex macro 82 #if defined(SYS_futex_time64) && !defined(SYS_futex) 83 #define SYS_futex SYS_futex_time64 macro 98 SYS_futex, reinterpret_cast<int32_t *>(v), in WaitUntil() 104 err = syscall(SYS_futex, reinterpret_cast<int32_t *>(v), in WaitUntil() 116 int err = syscall(SYS_futex, reinterpret_cast<int32_t *>(v), in WaitBitsetAbsoluteTimeout() 126 int err = syscall(SYS_futex, reinterpret_cast<int32_t *>(v), in Wake() 136 int err = syscall(SYS_futex, reinterpret_cast<int32_t *>(v), in WakeBitset()
|
/third_party/abseil-cpp/absl/base/internal/ |
D | spinlock_linux.inc | 31 // by SYS_futex. We also assume that reads/writes done to the lockword 32 // by SYS_futex have rational semantics with regard to the 41 #ifndef SYS_futex 42 #define SYS_futex __NR_futex 53 #if defined(SYS_futex_time64) && !defined(SYS_futex) 54 #define SYS_futex SYS_futex_time64 66 syscall(SYS_futex, w, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, value, &tm); 71 syscall(SYS_futex, w, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, all ? INT_MAX : 1, 0);
|
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/ |
D | spinlock_linux.inc | 31 // by SYS_futex. We also assume that reads/writes done to the lockword 32 // by SYS_futex have rational semantics with regard to the 41 #ifndef SYS_futex 42 #define SYS_futex __NR_futex 53 #if defined(SYS_futex_time64) && !defined(SYS_futex) 54 #define SYS_futex SYS_futex_time64 66 syscall(SYS_futex, w, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, value, &tm); 71 syscall(SYS_futex, w, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, all ? INT_MAX : 1, 0);
|
/third_party/musl/src/thread/ |
D | __timedwait.c | 18 if (SYS_futex == SYS_futex_time64 || !IS32BIT(s)) in __futex4_cp() 21 if (SYS_futex == SYS_futex_time64 || r!=-ENOSYS) return r; in __futex4_cp() 24 r = __syscall_cp(SYS_futex, addr, op, val, to); in __futex4_cp() 26 return __syscall_cp(SYS_futex, addr, op & ~FUTEX_PRIVATE, val, to); in __futex4_cp()
|
D | pthread_mutex_timedlock.c | 12 if (SYS_futex == SYS_futex_time64 || !IS32BIT(s)) in __futex4() 15 if (SYS_futex == SYS_futex_time64 || r!=-ENOSYS) return r; in __futex4() 18 return __syscall(SYS_futex, addr, op, val, to); in __futex4() 39 __syscall(SYS_futex, &m->_m_lock, FUTEX_UNLOCK_PI|priv); in pthread_mutex_timedlock_pi()
|
D | __wait.c | 13 __syscall(SYS_futex, addr, FUTEX_WAIT|priv, val, 0) != -ENOSYS in __wait() 14 || __syscall(SYS_futex, addr, FUTEX_WAIT, val, 0); in __wait()
|
D | pthread_barrier_wait.c | 87 __syscall(SYS_futex,&inst->finished,FUTEX_WAIT|FUTEX_PRIVATE,1,0) != -ENOSYS in pthread_barrier_wait() 88 || __syscall(SYS_futex,&inst->finished,FUTEX_WAIT,1,0); in pthread_barrier_wait()
|
D | pthread_mutexattr_setprotocol.c | 10 check_pi_result = -__syscall(SYS_futex, &lk, FUTEX_LOCK_PI, 0, 0); in check_pi()
|
D | pthread_cond_timedwait.c | 52 else __syscall(SYS_futex, l, FUTEX_REQUEUE|FUTEX_PRIVATE, 0, 1, r) != -ENOSYS in unlock_requeue() 53 || __syscall(SYS_futex, l, FUTEX_REQUEUE, 0, 1, r); in unlock_requeue()
|
/third_party/musl/porting/liteos_a/user/src/thread/ |
D | __timedwait.c | 20 if (SYS_futex == SYS_futex_time64 || !IS32BIT(s)) in __futex4_cp() 23 if (SYS_futex == SYS_futex_time64 || r!=-ENOSYS) return r; in __futex4_cp() 35 r = __syscall_cp(SYS_futex, addr, op, val, useconds); in __futex4_cp() 37 return __syscall_cp(SYS_futex, addr, op & ~FUTEX_PRIVATE, val, useconds); in __futex4_cp()
|
D | pthread_mutex_timedlock.c | 12 if (SYS_futex == SYS_futex_time64 || !IS32BIT(s)) in __futex4() 15 if (SYS_futex == SYS_futex_time64 || r!=-ENOSYS) return r; in __futex4() 18 return __syscall(SYS_futex, addr, op, val, to); in __futex4() 39 __syscall(SYS_futex, &m->_m_lock, FUTEX_UNLOCK_PI|priv); in pthread_mutex_timedlock_pi()
|
D | __wait.c | 13 __syscall(SYS_futex, addr, FUTEX_WAIT|priv, val, 0xffffffffu) != -ENOSYS in __wait() 14 || __syscall(SYS_futex, addr, FUTEX_WAIT, val, 0xffffffffu); in __wait()
|
D | pthread_barrier_wait.c | 87 __syscall(SYS_futex,&inst->finished,FUTEX_WAIT|FUTEX_PRIVATE,1,0xffffffffu) != -ENOSYS in pthread_barrier_wait() 88 || __syscall(SYS_futex,&inst->finished,FUTEX_WAIT,1,0xffffffffu); in pthread_barrier_wait()
|
D | pthread_mutexattr_setprotocol.c | 11 check_pi_result = -__syscall(SYS_futex, &lk, FUTEX_LOCK_PI, 0, 0); in check_pi()
|
/third_party/abseil-cpp/absl/synchronization/internal/ |
D | waiter.cc | 72 #ifndef SYS_futex 73 #define SYS_futex __NR_futex macro 93 #if defined(SYS_futex_time64) && !defined(SYS_futex) 94 #define SYS_futex SYS_futex_time64 macro 109 SYS_futex, reinterpret_cast<int32_t *>(v), in WaitUntil() 115 err = syscall(SYS_futex, reinterpret_cast<int32_t *>(v), in WaitUntil() 125 int err = syscall(SYS_futex, reinterpret_cast<int32_t *>(v), in Wake()
|
/third_party/musl/porting/linux/user/src/thread/ |
D | pthread_mutex_timedlock.c | 27 if (SYS_futex == SYS_futex_time64 || !IS32BIT(s)) in __futex4() 30 if (SYS_futex == SYS_futex_time64 || r!=-ENOSYS) return r; in __futex4() 33 return __syscall(SYS_futex, addr, op, val, to); in __futex4() 55 __syscall(SYS_futex, &m->_m_lock, FUTEX_UNLOCK_PI|priv); in pthread_mutex_timedlock_pi()
|
/third_party/ltp/include/lapi/ |
D | futex.h | 13 #if !defined(SYS_futex) && defined(SYS_futex_time64) 14 #define SYS_futex SYS_futex_time64 macro
|
/third_party/musl/src/internal/ |
D | pthread_impl.h | 159 __syscall(SYS_futex, addr, FUTEX_WAKE|priv, cnt) != -ENOSYS || in __wake() 160 __syscall(SYS_futex, addr, FUTEX_WAKE, cnt); in __wake() 165 __syscall(SYS_futex, addr, FUTEX_WAIT|priv, val, 0) != -ENOSYS || in __futexwait() 166 __syscall(SYS_futex, addr, FUTEX_WAIT, val, 0); in __futexwait()
|
/third_party/musl/porting/liteos_a/user/src/internal/ |
D | pthread_impl.h | 160 __syscall(SYS_futex, addr, FUTEX_WAKE|priv, cnt) != -ENOSYS || in __wake() 161 __syscall(SYS_futex, addr, FUTEX_WAKE, cnt); in __wake() 166 __syscall(SYS_futex, addr, FUTEX_WAIT|priv, val, 0xffffffffu) != -ENOSYS || in __futexwait() 167 __syscall(SYS_futex, addr, FUTEX_WAIT, val, 0xffffffffu); in __futexwait()
|
/third_party/musl/porting/liteos_m/user/src/internal/ |
D | pthread_impl.h | 160 __syscall(SYS_futex, addr, FUTEX_WAKE|priv, cnt) != -ENOSYS || in __wake() 161 __syscall(SYS_futex, addr, FUTEX_WAKE, cnt); in __wake() 166 __syscall(SYS_futex, addr, FUTEX_WAIT|priv, val, 0xffffffffu) != -ENOSYS || in __futexwait() 167 __syscall(SYS_futex, addr, FUTEX_WAIT, val, 0xffffffffu); in __futexwait()
|
/third_party/musl/porting/linux/user/src/internal/ |
D | pthread_impl.h | 189 __syscall(SYS_futex, addr, FUTEX_WAKE|priv, cnt) != -ENOSYS || in __wake() 190 __syscall(SYS_futex, addr, FUTEX_WAKE, cnt); in __wake() 195 __syscall(SYS_futex, addr, FUTEX_WAIT|priv, val, 0) != -ENOSYS || in __futexwait() 196 __syscall(SYS_futex, addr, FUTEX_WAIT, val, 0); in __futexwait()
|
/third_party/boost/boost/atomic/detail/ |
D | futex.hpp | 31 #if defined(SYS_futex) 32 #define BOOST_ATOMIC_DETAIL_SYS_FUTEX SYS_futex
|
/third_party/ltp/lib/ |
D | tst_checkpoint.c | 101 ret = syscall(SYS_futex, &tst_futexes[id], FUTEX_WAIT, in tst_checkpoint_wait() 122 waked += syscall(SYS_futex, &tst_futexes[id], FUTEX_WAKE, in tst_checkpoint_wake()
|
/third_party/boost/libs/log/src/ |
D | event.cpp | 35 #if defined(SYS_futex) 36 #define BOOST_LOG_SYS_FUTEX SYS_futex
|
/third_party/ltp/testcases/kernel/syscalls/futex/ |
D | futex_wait05.c | 22 TEST(syscall(SYS_futex, &futex, FUTEX_WAIT, futex, &to, NULL, 0)); in sample_fn()
|