/external/valgrind/helgrind/tests/ |
D | cond_timedwait_invalid.c | 9 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()
|
D | tc20_verifywrap.c | 56 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/ |
D | thread.c | 57 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/ |
D | xcam_mutex.h | 83 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/ |
D | wsi_common_queue.h | 127 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/ |
D | evthread_pthread.c | 144 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()
|
D | evutil_time.c | 362 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/ |
D | dd_interceptors.cc | 123 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/ |
D | 9-1-buildonly.c | 14 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/ |
D | tsan_platform_mac.cc | 178 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()
|
D | tsan_platform_linux.cc | 319 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()
|
D | tsan_interceptors.cc | 1047 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 …]
|
D | tsan_platform.h | 764 void *abstime), void *c, void *m, void *abstime,
|
/external/valgrind/helgrind/ |
D | hg_intercepts.c | 1261 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/ |
D | thread_win32.cpp | 119 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/ |
D | os_unix.c | 111 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/ |
D | anv_device.c | 1776 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/ |
D | drd_pthread_intercepts.c | 1103 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/ |
D | sanitizer_common_interceptors.inc | 5479 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);
|