Home
last modified time | relevance | path

Searched refs:SYS_futex (Results 1 – 25 of 35) sorted by relevance

12

/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/internal/
Dfutex.h61 #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/
Dspinlock_linux.inc31 // 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/
Dspinlock_linux.inc31 // 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.c18 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()
Dpthread_mutex_timedlock.c12 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.c13 __syscall(SYS_futex, addr, FUTEX_WAIT|priv, val, 0) != -ENOSYS in __wait()
14 || __syscall(SYS_futex, addr, FUTEX_WAIT, val, 0); in __wait()
Dpthread_barrier_wait.c87 __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()
Dpthread_mutexattr_setprotocol.c10 check_pi_result = -__syscall(SYS_futex, &lk, FUTEX_LOCK_PI, 0, 0); in check_pi()
Dpthread_cond_timedwait.c52 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.c20 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()
Dpthread_mutex_timedlock.c12 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.c13 __syscall(SYS_futex, addr, FUTEX_WAIT|priv, val, 0xffffffffu) != -ENOSYS in __wait()
14 || __syscall(SYS_futex, addr, FUTEX_WAIT, val, 0xffffffffu); in __wait()
Dpthread_barrier_wait.c87 __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()
Dpthread_mutexattr_setprotocol.c11 check_pi_result = -__syscall(SYS_futex, &lk, FUTEX_LOCK_PI, 0, 0); in check_pi()
/third_party/abseil-cpp/absl/synchronization/internal/
Dwaiter.cc72 #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/
Dpthread_mutex_timedlock.c27 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/
Dfutex.h13 #if !defined(SYS_futex) && defined(SYS_futex_time64)
14 #define SYS_futex SYS_futex_time64 macro
/third_party/musl/src/internal/
Dpthread_impl.h159 __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/
Dpthread_impl.h160 __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/
Dpthread_impl.h160 __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/
Dpthread_impl.h189 __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/
Dfutex.hpp31 #if defined(SYS_futex)
32 #define BOOST_ATOMIC_DETAIL_SYS_FUTEX SYS_futex
/third_party/ltp/lib/
Dtst_checkpoint.c101 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/
Devent.cpp35 #if defined(SYS_futex)
36 #define BOOST_LOG_SYS_FUTEX SYS_futex
/third_party/ltp/testcases/kernel/syscalls/futex/
Dfutex_wait05.c22 TEST(syscall(SYS_futex, &futex, FUTEX_WAIT, futex, &to, NULL, 0)); in sample_fn()

12