Home
last modified time | relevance | path

Searched refs:abs_timeout (Results 1 – 6 of 6) sorted by relevance

/bionic/libc/bionic/
Dbionic_futex.cpp37 const timespec* abs_timeout, int bitset) { in FutexWithTimeout() argument
38 const timespec* futex_abs_timeout = abs_timeout; in FutexWithTimeout()
50 if (abs_timeout && use_realtime_clock) { in FutexWithTimeout()
51 monotonic_time_from_realtime_time(converted_monotonic_abs_timeout, *abs_timeout); in FutexWithTimeout()
62 const timespec* abs_timeout) { in __futex_wait_ex() argument
64 use_realtime_clock, abs_timeout, FUTEX_BITSET_MATCH_ANY); in __futex_wait_ex()
68 const timespec* abs_timeout) { in __futex_pi_lock_ex() argument
70 use_realtime_clock, abs_timeout, 0); in __futex_pi_lock_ex()
Dsemaphore.cpp233 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()
Dpthread_cond.cpp235 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()
255 const timespec* abs_timeout) { in pthread_cond_timedwait_monotonic() argument
256 return pthread_cond_timedwait_monotonic_np(cond_interface, mutex, abs_timeout); in pthread_cond_timedwait_monotonic()
265 timespec* abs_timeout = nullptr; in pthread_cond_timedwait_relative_np() local
268 abs_timeout = &ts; in pthread_cond_timedwait_relative_np()
270 return __pthread_cond_timedwait(__get_internal_cond(cond_interface), mutex, false, abs_timeout); in pthread_cond_timedwait_relative_np()
Dpthread_rwlock.cpp419 int pthread_rwlock_timedrdlock(pthread_rwlock_t* rwlock_interface, const timespec* abs_timeout) { in pthread_rwlock_timedrdlock() argument
422 return __pthread_rwlock_timedrdlock(rwlock, true, abs_timeout); in pthread_rwlock_timedrdlock()
426 const timespec* abs_timeout) { in pthread_rwlock_timedrdlock_monotonic_np() argument
429 return __pthread_rwlock_timedrdlock(rwlock, false, abs_timeout); in pthread_rwlock_timedrdlock_monotonic_np()
433 const struct timespec* abs_timeout) { in pthread_rwlock_clockrdlock() argument
436 return pthread_rwlock_timedrdlock_monotonic_np(rwlock_interface, abs_timeout); in pthread_rwlock_clockrdlock()
438 return pthread_rwlock_timedrdlock(rwlock_interface, abs_timeout); in pthread_rwlock_clockrdlock()
457 int pthread_rwlock_timedwrlock(pthread_rwlock_t* rwlock_interface, const timespec* abs_timeout) { in pthread_rwlock_timedwrlock() argument
460 return __pthread_rwlock_timedwrlock(rwlock, true, abs_timeout); in pthread_rwlock_timedwrlock()
464 const timespec* abs_timeout) { in pthread_rwlock_timedwrlock_monotonic_np() argument
[all …]
Dpthread_mutex.cpp179 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()
951 timespec abs_timeout; in pthread_mutex_lock_timeout_np() local
952 absolute_timespec_from_timespec(abs_timeout, ts, CLOCK_MONOTONIC); in pthread_mutex_lock_timeout_np()
954 &abs_timeout); in pthread_mutex_lock_timeout_np()
963 const timespec* abs_timeout, const char* function) { in __pthread_mutex_timedlock() argument
975 return PIMutexTimedLock(mutex->ToPIMutex(), use_realtime_clock, abs_timeout); in __pthread_mutex_timedlock()
[all …]
/bionic/libc/private/
Dbionic_futex.h71 bool use_realtime_clock, const timespec* abs_timeout);
78 const timespec* abs_timeout);