/bionic/libc/bionic/ |
D | bionic_futex.cpp | 38 const timespec* abs_timeout, int bitset) { in FutexWithTimeout() argument 50 if (abs_timeout) { in FutexWithTimeout() 53 realtime_time_from_monotonic_time(converted_timeout, *abs_timeout); in FutexWithTimeout() 54 abs_timeout = &converted_timeout; in FutexWithTimeout() 59 monotonic_time_from_realtime_time(converted_timeout, *abs_timeout); in FutexWithTimeout() 60 abs_timeout = &converted_timeout; in FutexWithTimeout() 63 if (abs_timeout->tv_sec < 0) { in FutexWithTimeout() 68 return __futex(ftx, op, value, abs_timeout, bitset); in FutexWithTimeout() 72 const timespec* abs_timeout) { in __futex_wait_ex() argument 74 use_realtime_clock, abs_timeout, FUTEX_BITSET_MATCH_ANY); in __futex_wait_ex() [all …]
|
D | semaphore.cpp | 233 static int __sem_timedwait(sem_t* sem, const timespec* abs_timeout, bool use_realtime_clock) { in __sem_timedwait() argument 244 int result = check_timespec(abs_timeout, false); in __sem_timedwait() 260 use_realtime_clock, abs_timeout); in __sem_timedwait() 270 int sem_timedwait(sem_t* sem, const timespec* abs_timeout) { in sem_timedwait() argument 271 return __sem_timedwait(sem, abs_timeout, true); in sem_timedwait() 274 int sem_timedwait_monotonic_np(sem_t* sem, const timespec* abs_timeout) { in sem_timedwait_monotonic_np() argument 275 return __sem_timedwait(sem, abs_timeout, false); in sem_timedwait_monotonic_np() 278 int sem_clockwait(sem_t* sem, clockid_t clock, const timespec* abs_timeout) { in sem_clockwait() argument 281 return sem_timedwait_monotonic_np(sem, abs_timeout); in sem_clockwait() 283 return sem_timedwait(sem, abs_timeout); in sem_clockwait()
|
D | pthread_cond.cpp | 235 const timespec* abs_timeout) { in pthread_cond_timedwait_monotonic_np() argument 236 return __pthread_cond_timedwait(__get_internal_cond(cond_interface), mutex, false, abs_timeout); in pthread_cond_timedwait_monotonic_np() 240 const struct timespec* abs_timeout) { in pthread_cond_clockwait() argument 243 return pthread_cond_timedwait_monotonic_np(cond_interface, mutex, abs_timeout); in pthread_cond_clockwait() 245 … return __pthread_cond_timedwait(__get_internal_cond(cond_interface), mutex, true, abs_timeout); in pthread_cond_clockwait() 256 const timespec* abs_timeout) { in pthread_cond_timedwait_monotonic() argument 257 return pthread_cond_timedwait_monotonic_np(cond_interface, mutex, abs_timeout); in pthread_cond_timedwait_monotonic() 268 timespec* abs_timeout = nullptr; in pthread_cond_timedwait_relative_np() local 271 abs_timeout = &ts; in pthread_cond_timedwait_relative_np() 273 return __pthread_cond_timedwait(__get_internal_cond(cond_interface), mutex, false, abs_timeout); in pthread_cond_timedwait_relative_np()
|
D | pthread_rwlock.cpp | 420 int pthread_rwlock_timedrdlock(pthread_rwlock_t* rwlock_interface, const timespec* abs_timeout) { in pthread_rwlock_timedrdlock() argument 423 return __pthread_rwlock_timedrdlock(rwlock, true, abs_timeout); in pthread_rwlock_timedrdlock() 427 const timespec* abs_timeout) { in pthread_rwlock_timedrdlock_monotonic_np() argument 430 return __pthread_rwlock_timedrdlock(rwlock, false, abs_timeout); in pthread_rwlock_timedrdlock_monotonic_np() 434 const struct timespec* abs_timeout) { in pthread_rwlock_clockrdlock() argument 437 return pthread_rwlock_timedrdlock_monotonic_np(rwlock_interface, abs_timeout); in pthread_rwlock_clockrdlock() 439 return pthread_rwlock_timedrdlock(rwlock_interface, abs_timeout); in pthread_rwlock_clockrdlock() 458 int pthread_rwlock_timedwrlock(pthread_rwlock_t* rwlock_interface, const timespec* abs_timeout) { in pthread_rwlock_timedwrlock() argument 461 return __pthread_rwlock_timedwrlock(rwlock, true, abs_timeout); in pthread_rwlock_timedwrlock() 465 const timespec* abs_timeout) { in pthread_rwlock_timedwrlock_monotonic_np() argument [all …]
|
D | pthread_mutex.cpp | 179 const timespec* abs_timeout) { in PIMutexTimedLock() argument 186 ret = -__futex_pi_lock_ex(&mutex.owner_tid, mutex.shared, use_realtime_clock, abs_timeout); in PIMutexTimedLock() 689 const timespec* abs_timeout) { in RecursiveOrErrorcheckMutexWait() argument 696 return __futex_wait_ex(&mutex->state, shared, old_state, use_realtime_clock, abs_timeout); in RecursiveOrErrorcheckMutexWait() 706 use_realtime_clock, abs_timeout); in RecursiveOrErrorcheckMutexWait() 953 timespec abs_timeout; in pthread_mutex_lock_timeout_np() local 954 absolute_timespec_from_timespec(abs_timeout, ts, CLOCK_MONOTONIC); in pthread_mutex_lock_timeout_np() 956 &abs_timeout); in pthread_mutex_lock_timeout_np() 965 const timespec* abs_timeout, const char* function) { in __pthread_mutex_timedlock() argument 977 return PIMutexTimedLock(mutex->ToPIMutex(), use_realtime_clock, abs_timeout); in __pthread_mutex_timedlock() [all …]
|
/bionic/libc/private/ |
D | bionic_futex.h | 71 bool use_realtime_clock, const timespec* abs_timeout); 78 const timespec* abs_timeout);
|