Home
last modified time | relevance | path

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

/external/valgrind/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.c56 struct timespec abstime; in main() local
134 memset( &abstime, 0, sizeof(abstime) ); in main()
136 r= pthread_mutex_timedlock( &mx3, &abstime ); assert(r); in main()
178 memset( &abstime, 0, sizeof(abstime) ); in main()
179 abstime.tv_nsec = 1000000000 + 1; in main()
180 r= pthread_cond_timedwait( &cv, &mx4, &abstime ); assert(r); in main()
/external/libcups/cups/
Dthread.c57 struct timespec abstime; /* Timeout */ in _cupsCondWait() local
59 clock_gettime(CLOCK_REALTIME, &abstime); in _cupsCondWait()
61 abstime.tv_sec += (long)timeout; in _cupsCondWait()
62 abstime.tv_nsec += (long)(1000000000 * (timeout - (long)timeout)); in _cupsCondWait()
64 while (abstime.tv_nsec >= 1000000000) in _cupsCondWait()
66 abstime.tv_nsec -= 1000000000; in _cupsCondWait()
67 abstime.tv_sec ++; in _cupsCondWait()
70 pthread_cond_timedwait(cond, mutex, &abstime); in _cupsCondWait()
/external/libxcam/xcore/
Dxcam_mutex.h83 struct timespec abstime; in timedwait() local
87 xcam_mem_clear (abstime); in timedwait()
88 abstime.tv_sec += now.tv_sec + now.tv_usec / 1000000; in timedwait()
89 abstime.tv_nsec = (now.tv_usec % 1000000) * 1000; in timedwait()
91 return pthread_cond_timedwait (&_cond, &mutex._mutex, &abstime); in timedwait()
/external/mesa3d/src/vulkan/wsi/
Dwsi_common_queue.h127 struct timespec abstime; in wsi_queue_pull() local
128 abstime.tv_nsec = abs_nsec; in wsi_queue_pull()
129 abstime.tv_sec = MIN2(abs_sec, INT_TYPE_MAX(abstime.tv_sec)); in wsi_queue_pull()
132 ret = pthread_cond_timedwait(&queue->cond, &queue->mutex, &abstime); in wsi_queue_pull()
/external/libevent/
Devthread_pthread.c144 struct timeval now, abstime; in evthread_posix_cond_wait() local
147 evutil_timeradd(&now, tv, &abstime); in evthread_posix_cond_wait()
148 ts.tv_sec = abstime.tv_sec; in evthread_posix_cond_wait()
149 ts.tv_nsec = abstime.tv_usec*1000; in evthread_posix_cond_wait()
Devutil_time.c362 ev_uint64_t abstime, usec; in evutil_gettime_monotonic_() local
370 abstime = mach_absolute_time(); in evutil_gettime_monotonic_()
371 usec = (abstime * base->mach_timebase_units.numer) in evutil_gettime_monotonic_()
/external/compiler-rt/lib/tsan/dd/
Ddd_interceptors.cc123 const timespec *abstime) { in INTERCEPTOR() argument
125 int res = REAL(pthread_rwlock_timedrdlock)(m, abstime); in INTERCEPTOR()
148 const timespec *abstime) { in INTERCEPTOR() argument
150 int res = REAL(pthread_rwlock_timedwrlock)(m, abstime); in INTERCEPTOR()
194 const timespec *abstime) { in INTERCEPTOR() argument
199 int res = REAL(pthread_cond_timedwait)(cond, m, abstime); in INTERCEPTOR()
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/mqueue_h/
D9-1-buildonly.c14 struct timespec abstime; in test_mq_timedreceive_prototype() local
20 size = mq_timedreceive(mqdes, msgp, msg_len, &msg_prio, &abstime); in test_mq_timedreceive_prototype()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_platform_mac.cc178 void *abstime), void *c, void *m, void *abstime, in call_pthread_cancel_with_cleanup() argument
184 res = fn(c, m, abstime); in call_pthread_cancel_with_cleanup()
Dtsan_platform_linux.cc319 void *abstime), void *c, void *m, void *abstime, in call_pthread_cancel_with_cleanup() argument
325 res = fn(c, m, abstime); in call_pthread_cancel_with_cleanup()
Dtsan_interceptors.cc1047 int (*fn)(void *c, void *m, void *abstime), void *c, in cond_wait() argument
1069 return cond_wait(thr, pc, &si, (int (*)(void *c, void *m, void *abstime))REAL( in INTERCEPTOR()
1074 INTERCEPTOR(int, pthread_cond_timedwait, void *c, void *m, void *abstime) { in INTERCEPTOR() argument
1076 SCOPED_TSAN_INTERCEPTOR(pthread_cond_timedwait, cond, m, abstime); in INTERCEPTOR()
1078 abstime); in INTERCEPTOR()
1154 TSAN_INTERCEPTOR(int, pthread_mutex_timedlock, void *m, void *abstime) { in TSAN_INTERCEPTOR() argument
1155 SCOPED_TSAN_INTERCEPTOR(pthread_mutex_timedlock, m, abstime); in TSAN_INTERCEPTOR()
1156 int res = REAL(pthread_mutex_timedlock)(m, abstime); in TSAN_INTERCEPTOR()
1246 TSAN_INTERCEPTOR(int, pthread_rwlock_timedrdlock, void *m, void *abstime) { in TSAN_INTERCEPTOR() argument
1247 SCOPED_TSAN_INTERCEPTOR(pthread_rwlock_timedrdlock, m, abstime); in TSAN_INTERCEPTOR()
[all …]
Dtsan_platform.h764 void *abstime), void *c, void *m, void *abstime,
/external/valgrind/helgrind/
Dhg_intercepts.c1261 struct timespec* abstime, in pthread_cond_timedwait_WRK() argument
1272 cond, mutex, abstime); in pthread_cond_timedwait_WRK()
1284 abstime_is_valid = abstime->tv_nsec >= 0 && abstime->tv_nsec < 1000000000; in pthread_cond_timedwait_WRK()
1295 CALL_FN_W_WWW(ret, fn, cond,mutex,abstime); in pthread_cond_timedwait_WRK()
1329 struct timespec* abstime) { in PTH_FUNC() argument
1330 return pthread_cond_timedwait_WRK(cond, mutex, abstime, ETIMEDOUT); in PTH_FUNC()
1335 struct timespec* abstime) { in PTH_FUNC() argument
1336 return pthread_cond_timedwait_WRK(cond, mutex, abstime, ETIMEDOUT); in PTH_FUNC()
1340 struct timespec* abstime) { in PTH_FUNC() argument
1341 return pthread_cond_timedwait_WRK(cond, mutex, abstime, ETIMEDOUT); in PTH_FUNC()
[all …]
/external/libcxx/src/support/win32/
Dthread_win32.cpp119 auto abstime = in __libcpp_condvar_timedwait() local
121 auto timeout_ms = duration_cast<milliseconds>(abstime - system_clock::now()); in __libcpp_condvar_timedwait()
/external/wpa_supplicant_8/src/utils/
Dos_unix.c111 uint64_t abstime, nano; in os_get_reltime()
119 abstime = mach_absolute_time(); in os_get_reltime()
120 nano = (abstime * info.numer) / info.denom; in os_get_reltime()
/external/mesa3d/src/intel/vulkan/
Danv_device.c1776 struct timespec abstime; in anv_WaitForFences() local
1777 abstime.tv_nsec = abs_nsec; in anv_WaitForFences()
1778 abstime.tv_sec = MIN2(abs_sec, INT_TYPE_MAX(abstime.tv_sec)); in anv_WaitForFences()
1781 &device->mutex, &abstime); in anv_WaitForFences()
/external/valgrind/drd/
Ddrd_pthread_intercepts.c1103 const struct timespec* abstime) in pthread_cond_timedwait_intercept() argument
1110 CALL_FN_W_WWW(ret, fn, cond, mutex, abstime); in pthread_cond_timedwait_intercept()
1118 const struct timespec* abstime),
1119 (cond, mutex, abstime));
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_interceptors.inc5479 INTERCEPTOR(int, sem_timedwait, __sanitizer_sem_t *s, void *abstime) {
5481 COMMON_INTERCEPTOR_ENTER(ctx, sem_timedwait, s, abstime);
5482 COMMON_INTERCEPTOR_READ_RANGE(ctx, abstime, struct_timespec_sz);
5483 int res = COMMON_INTERCEPTOR_BLOCK_REAL(sem_timedwait)(s, abstime);