Home
last modified time | relevance | path

Searched refs:abstime (Results 1 – 25 of 29) sorted by relevance

12

/external/lldb/include/lldb/Host/
DPredicate.h216 WaitForSetValueBits (T bits, const TimeValue *abstime = NULL)
226 …tf("%s (bits = 0x%8.8x, abstime = %p), m_value = 0x%8.8x\n", __FUNCTION__, bits, abstime, m_value);
230 err = m_condition.Wait (m_mutex, abstime);
265 WaitForResetValueBits (T bits, const TimeValue *abstime = NULL)
277 …tf("%s (bits = 0x%8.8x, abstime = %p), m_value = 0x%8.8x\n", __FUNCTION__, bits, abstime, m_value);
281 err = m_condition.Wait (m_mutex, abstime);
320 WaitForValueEqualTo (T value, const TimeValue *abstime = NULL, bool *timed_out = NULL)
331 …("%s (value = 0x%8.8x, abstime = %p), m_value = 0x%8.8x\n", __FUNCTION__, value, abstime, m_value);
338 err = m_condition.Wait (m_mutex, abstime, timed_out);
380 …WaitForValueEqualToAndSetValueTo (T wait_value, T new_value, const TimeValue *abstime = NULL, bool…
[all …]
DCondition.h102 Wait (Mutex &mutex, const TimeValue *abstime = NULL, bool *timed_out = NULL);
/external/qemu/distrib/sdl-1.2.15/src/thread/pthread/
DSDL_syscond.c102 struct timespec abstime; in SDL_CondWaitTimeout() local
111 abstime.tv_sec = delta.tv_sec + (ms/1000); in SDL_CondWaitTimeout()
112 abstime.tv_nsec = (delta.tv_usec + (ms%1000) * 1000) * 1000; in SDL_CondWaitTimeout()
113 if ( abstime.tv_nsec > 1000000000 ) { in SDL_CondWaitTimeout()
114 abstime.tv_sec += 1; in SDL_CondWaitTimeout()
115 abstime.tv_nsec -= 1000000000; in SDL_CondWaitTimeout()
119 retval = pthread_cond_timedwait(&cond->cond, &mutex->id, &abstime); in SDL_CondWaitTimeout()
/external/qemu/distrib/sdl-1.2.15/src/thread/riscos/
DSDL_syscond.c106 struct timespec abstime; in SDL_CondWaitTimeout() local
115 abstime.tv_sec = delta.tv_sec + (ms/1000); in SDL_CondWaitTimeout()
116 abstime.tv_nsec = (delta.tv_usec + (ms%1000) * 1000) * 1000; in SDL_CondWaitTimeout()
117 if ( abstime.tv_nsec > 1000000000 ) { in SDL_CondWaitTimeout()
118 abstime.tv_sec += 1; in SDL_CondWaitTimeout()
119 abstime.tv_nsec -= 1000000000; in SDL_CondWaitTimeout()
123 retval = pthread_cond_timedwait(&cond->cond, &mutex->id, &abstime); in SDL_CondWaitTimeout()
/external/valgrind/main/helgrind/tests/
Dcond_timedwait_invalid.c9 struct timespec abstime; in main() local
16 abstime.tv_sec = time(NULL) + 2; in main()
17 abstime.tv_nsec = 0; in main()
19 abstime.tv_nsec += 1000000000; in main()
22 assert(pthread_cond_timedwait(&cond, &mutex, &abstime)==EINVAL); in main()
Dtc20_verifywrap.c46 struct timespec abstime; in main() local
119 memset( &abstime, 0, sizeof(abstime) ); in main()
121 r= pthread_mutex_timedlock( &mx3, &abstime ); assert(r); in main()
163 memset( &abstime, 0, sizeof(abstime) ); in main()
164 abstime.tv_nsec = 1000000000 + 1; in main()
165 r= pthread_cond_timedwait( &cv, &mx4, &abstime ); assert(r); in main()
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/
Dpthread_mutex_timedlock.c42 ptw32_timed_eventwait (HANDLE event, const struct timespec *abstime) in ptw32_timed_eventwait() argument
75 if (abstime == NULL) in ptw32_timed_eventwait()
84 milliseconds = ptw32_relmillisecs (abstime); in ptw32_timed_eventwait()
110 const struct timespec *abstime) in pthread_mutex_timedlock() argument
149 if (0 != (result = ptw32_timed_eventwait (mx->event, abstime))) in pthread_mutex_timedlock()
187 if (0 != (result = ptw32_timed_eventwait (mx->event, abstime))) in pthread_mutex_timedlock()
231 if (0 != (result = ptw32_timed_eventwait (mx->event, abstime))) in pthread_mutex_timedlock()
293 if (0 != (result = ptw32_timed_eventwait (mx->event, abstime))) in pthread_mutex_timedlock()
Dpthread_cond_wait.c355 pthread_mutex_t * mutex, const struct timespec *abstime) in ptw32_cond_timedwait() argument
431 if (sem_timedwait (&(cv->semBlockQueue), abstime) != 0) in ptw32_cond_timedwait()
514 const struct timespec *abstime) in pthread_cond_timedwait() argument
560 if (abstime == NULL) in pthread_cond_timedwait()
565 return (ptw32_cond_timedwait (cond, mutex, abstime)); in pthread_cond_timedwait()
Dpthread_rwlock_timedwrlock.c44 const struct timespec *abstime) in pthread_rwlock_timedwrlock() argument
78 pthread_mutex_timedlock (&(rwl->mtxExclusiveAccess), abstime)) != 0) in pthread_rwlock_timedwrlock()
85 abstime)) != 0) in pthread_rwlock_timedwrlock()
117 abstime); in pthread_rwlock_timedwrlock()
Dpthread_rwlock_timedrdlock.c44 const struct timespec *abstime) in pthread_rwlock_timedrdlock() argument
78 pthread_mutex_timedlock (&(rwl->mtxExclusiveAccess), abstime)) != 0) in pthread_rwlock_timedrdlock()
87 abstime)) != 0) in pthread_rwlock_timedrdlock()
Dptw32_relmillisecs.c48 ptw32_relmillisecs (const struct timespec * abstime) in ptw32_relmillisecs() argument
80 tmpAbsMilliseconds = (int64_t)abstime->tv_sec * MILLISEC_PER_SEC; in ptw32_relmillisecs()
81 …tmpAbsMilliseconds += ((int64_t)abstime->tv_nsec + (NANOSEC_PER_MILLISEC/2)) / NANOSEC_PER_MILLISE… in ptw32_relmillisecs()
Dsem_timedwait.c98 sem_timedwait (sem_t * sem, const struct timespec *abstime) in sem_timedwait() argument
150 if (abstime == NULL) in sem_timedwait()
159 milliseconds = ptw32_relmillisecs (abstime); in sem_timedwait()
/external/lldb/source/Host/common/
DCondition.cpp81 Condition::Wait (Mutex &mutex, const TimeValue *abstime, bool *timed_out) in Wait() argument
86 if (abstime && abstime->IsValid()) in Wait()
88 struct timespec abstime_ts = abstime->GetAsTimeSpec(); in Wait()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_platform_mac.cc96 void *abstime), void *c, void *m, void *abstime, in call_pthread_cancel_with_cleanup() argument
102 res = fn(c, m, abstime); in call_pthread_cancel_with_cleanup()
Dtsan_platform.h200 void *abstime), void *c, void *m, void *abstime,
Dtsan_platform_linux.cc407 void *abstime), void *c, void *m, void *abstime, in call_pthread_cancel_with_cleanup() argument
413 res = fn(c, m, abstime); in call_pthread_cancel_with_cleanup()
Dtsan_interceptors.cc978 (int(*)(void *c, void *m, void *abstime))REAL(pthread_cond_wait), in INTERCEPTOR()
986 INTERCEPTOR(int, pthread_cond_timedwait, void *c, void *m, void *abstime) { in INTERCEPTOR() argument
988 SCOPED_TSAN_INTERCEPTOR(pthread_cond_timedwait, cond, m, abstime); in INTERCEPTOR()
995 REAL(pthread_cond_timedwait), cond, m, abstime, in INTERCEPTOR()
1065 TSAN_INTERCEPTOR(int, pthread_mutex_timedlock, void *m, void *abstime) { in TSAN_INTERCEPTOR() argument
1066 SCOPED_TSAN_INTERCEPTOR(pthread_mutex_timedlock, m, abstime); in TSAN_INTERCEPTOR()
1067 int res = REAL(pthread_mutex_timedlock)(m, abstime); in TSAN_INTERCEPTOR()
1153 TSAN_INTERCEPTOR(int, pthread_rwlock_timedrdlock, void *m, void *abstime) { in TSAN_INTERCEPTOR() argument
1154 SCOPED_TSAN_INTERCEPTOR(pthread_rwlock_timedrdlock, m, abstime); in TSAN_INTERCEPTOR()
1155 int res = REAL(pthread_rwlock_timedrdlock)(m, abstime); in TSAN_INTERCEPTOR()
[all …]
/external/chromium_org/components/nacl/loader/nonsfi/
Dirt_futex.cc36 const struct nacl_abi_timespec* abstime) { in IrtFutexWaitAbs() argument
39 if (abstime) { in IrtFutexWaitAbs()
45 NaClAbsTimeToRelTime(*abstime, now, &timeout); in IrtFutexWaitAbs()
/external/bluetooth/bluedroid/gki/ulinux/
Dgki_ulinux.c766 struct timespec abstime = { 0, 0 }; in GKI_wait() local
784 clock_gettime(CLOCK_MONOTONIC, &abstime); in GKI_wait()
789 abstime.tv_nsec += nano_sec; in GKI_wait()
790 if (abstime.tv_nsec > NSEC_PER_SEC) in GKI_wait()
792 abstime.tv_sec += (abstime.tv_nsec / NSEC_PER_SEC); in GKI_wait()
793 abstime.tv_nsec = abstime.tv_nsec % NSEC_PER_SEC; in GKI_wait()
795 abstime.tv_sec += sec; in GKI_wait()
798 &gki_cb.os.thread_evt_mutex[rtask], &abstime); in GKI_wait()
/external/compiler-rt/lib/tsan/dd/
Ddd_interceptors.cc126 const timespec *abstime) { in INTERCEPTOR() argument
128 int res = REAL(pthread_rwlock_timedrdlock)(m, abstime); in INTERCEPTOR()
151 const timespec *abstime) { in INTERCEPTOR() argument
153 int res = REAL(pthread_rwlock_timedwrlock)(m, abstime); in INTERCEPTOR()
197 const timespec *abstime) { in INTERCEPTOR() argument
202 int res = REAL(pthread_cond_timedwait)(cond, m, abstime); in INTERCEPTOR()
/external/libnfc-nci/halimpl/bcm2079x/gki/ulinux/
Dgki_ulinux.c644 struct timespec abstime = { 0, 0 }; in GKI_wait() local
694 clock_gettime(CLOCK_MONOTONIC, &abstime); in GKI_wait()
699 abstime.tv_nsec += nano_sec; in GKI_wait()
700 if (abstime.tv_nsec > NSEC_PER_SEC) in GKI_wait()
702 abstime.tv_sec += (abstime.tv_nsec / NSEC_PER_SEC); in GKI_wait()
703 abstime.tv_nsec = abstime.tv_nsec % NSEC_PER_SEC; in GKI_wait()
705 abstime.tv_sec += sec; in GKI_wait()
708 &gki_cb.os.thread_evt_mutex[rtask], &abstime); in GKI_wait()
/external/libnfc-nci/src/gki/ulinux/
Dgki_ulinux.c621 struct timespec abstime = { 0, 0 }; in GKI_wait() local
671 clock_gettime(CLOCK_MONOTONIC, &abstime); in GKI_wait()
676 abstime.tv_nsec += nano_sec; in GKI_wait()
677 if (abstime.tv_nsec > NSEC_PER_SEC) in GKI_wait()
679 abstime.tv_sec += (abstime.tv_nsec / NSEC_PER_SEC); in GKI_wait()
680 abstime.tv_nsec = abstime.tv_nsec % NSEC_PER_SEC; in GKI_wait()
682 abstime.tv_sec += sec; in GKI_wait()
685 &gki_cb.os.thread_evt_mutex[rtask], &abstime); in GKI_wait()
/external/valgrind/main/helgrind/
Dhg_intercepts.c752 struct timespec* abstime) in pthread_cond_timedwait_WRK() argument
762 cond, mutex, abstime); in pthread_cond_timedwait_WRK()
774 abstime_is_valid = abstime->tv_nsec >= 0 && abstime->tv_nsec < 1000000000; in pthread_cond_timedwait_WRK()
785 CALL_FN_W_WWW(ret, fn, cond,mutex,abstime); in pthread_cond_timedwait_WRK()
818 struct timespec* abstime) { in PTH_FUNC() argument
819 return pthread_cond_timedwait_WRK(cond, mutex, abstime); in PTH_FUNC()
824 struct timespec* abstime) { in PTH_FUNC() argument
825 return pthread_cond_timedwait_WRK(cond, mutex, abstime); in PTH_FUNC()
829 struct timespec* abstime) { in PTH_FUNC() argument
830 return pthread_cond_timedwait_WRK(cond, mutex, abstime); in PTH_FUNC()
[all …]
/external/chromium_org/third_party/libusb/src/libusb/os/
Dthreads_windows.c178 const struct timespec *abstime) { in usbi_cond_timedwait() argument
196 TIMESPEC_TO_TIMEVAL(&targ_time, abstime); in usbi_cond_timedwait()
Dthreads_windows.h81 const struct timespec *abstime);

12