/external/valgrind/main/helgrind/tests/ |
H A D | cond_timedwait_invalid.c | 9 struct timespec abstime; local 16 abstime.tv_sec = time(NULL) + 2; 17 abstime.tv_nsec = 0; 19 abstime.tv_nsec += 1000000000; 22 assert(pthread_cond_timedwait(&cond, &mutex, &abstime)==EINVAL);
|
H A D | tc20_verifywrap.c | 46 struct timespec abstime; local 119 memset( &abstime, 0, sizeof(abstime) ); 121 r= pthread_mutex_timedlock( &mx3, &abstime ); assert(r); 163 memset( &abstime, 0, sizeof(abstime) ); 164 abstime.tv_nsec = 1000000000 + 1; 165 r= pthread_cond_timedwait( &cv, &mx4, &abstime ); assert(r);
|
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/ |
H A D | pthread_rwlock_timedrdlock.c | 44 const struct timespec *abstime) 78 pthread_mutex_timedlock (&(rwl->mtxExclusiveAccess), abstime)) != 0) 87 abstime)) != 0) 43 pthread_rwlock_timedrdlock(pthread_rwlock_t * rwlock, const struct timespec *abstime) argument
|
H A D | pthread_rwlock_timedwrlock.c | 44 const struct timespec *abstime) 78 pthread_mutex_timedlock (&(rwl->mtxExclusiveAccess), abstime)) != 0) 85 abstime)) != 0) 117 abstime); 43 pthread_rwlock_timedwrlock(pthread_rwlock_t * rwlock, const struct timespec *abstime) argument
|
H A D | ptw32_relmillisecs.c | 48 ptw32_relmillisecs (const struct timespec * abstime) argument 74 * subtract current system time from abstime in a way that checks 75 * that abstime is never in the past, or is never equivalent to the 80 tmpAbsMilliseconds = (int64_t)abstime->tv_sec * MILLISEC_PER_SEC; 81 tmpAbsMilliseconds += ((int64_t)abstime->tv_nsec + (NANOSEC_PER_MILLISEC/2)) / NANOSEC_PER_MILLISEC; 127 /* The abstime given is in the past */
|
H A D | pthread_cond_wait.c | 355 pthread_mutex_t * mutex, const struct timespec *abstime) 431 if (sem_timedwait (&(cv->semBlockQueue), abstime) != 0) 504 * The NULL abstime arg means INFINITE waiting. 514 const struct timespec *abstime) 520 * specified by abstime passes. 529 * abstime 536 * specified by abstime passes. 552 * EINVAL 'cond', 'mutex', or abstime is invalid, 555 * ETIMEDOUT abstime ellapsed before cond was signaled. 560 if (abstime 354 ptw32_cond_timedwait(pthread_cond_t * cond, pthread_mutex_t * mutex, const struct timespec *abstime) argument 512 pthread_cond_timedwait(pthread_cond_t * cond, pthread_mutex_t * mutex, const struct timespec *abstime) argument [all...] |
H A D | pthread_mutex_timedlock.c | 42 ptw32_timed_eventwait (HANDLE event, const struct timespec *abstime) argument 47 * abstime passes. 48 * If abstime has passed when this routine is called then 51 * If 'abstime' is a NULL pointer then this function will 59 * ETIMEDOUT abstime passed 75 if (abstime == NULL) 84 milliseconds = ptw32_relmillisecs (abstime); 110 const struct timespec *abstime) 149 if (0 != (result = ptw32_timed_eventwait (mx->event, abstime))) 187 if (0 != (result = ptw32_timed_eventwait (mx->event, abstime))) 109 pthread_mutex_timedlock(pthread_mutex_t * mutex, const struct timespec *abstime) argument [all...] |
H A D | sem_timedwait.c | 98 sem_timedwait (sem_t * sem, const struct timespec *abstime) argument 103 * 'abstime' time. 109 * abstime 120 * If 'abstime' is a NULL pointer then this function will 132 * ETIMEDOUT abstime elapsed before success. 150 if (abstime == NULL) 159 milliseconds = ptw32_relmillisecs (abstime);
|
/external/chromium_org/components/nacl/loader/nonsfi/ |
H A D | irt_futex.cc | 36 const struct nacl_abi_timespec* abstime) { 39 if (abstime) { 45 NaClAbsTimeToRelTime(*abstime, now, &timeout); 35 IrtFutexWaitAbs(volatile int* addr, int value, const struct nacl_abi_timespec* abstime) argument
|
/external/lldb/source/Host/common/ |
H A D | Condition.cpp | 72 // condition variable, or if "abstime" is valid (non-NULL) this 74 // specified in "abstime". If "abstime" is NULL this function will 81 Condition::Wait (Mutex &mutex, const TimeValue *abstime, bool *timed_out) argument 86 if (abstime && abstime->IsValid()) 88 struct timespec abstime_ts = abstime->GetAsTimeSpec();
|
/external/qemu/distrib/sdl-1.2.15/src/thread/pthread/ |
H A D | SDL_syscond.c | 102 struct timespec abstime; local 111 abstime.tv_sec = delta.tv_sec + (ms/1000); 112 abstime.tv_nsec = (delta.tv_usec + (ms%1000) * 1000) * 1000; 113 if ( abstime.tv_nsec > 1000000000 ) { 114 abstime.tv_sec += 1; 115 abstime.tv_nsec -= 1000000000; 119 retval = pthread_cond_timedwait(&cond->cond, &mutex->id, &abstime);
|
/external/qemu/distrib/sdl-1.2.15/src/thread/riscos/ |
H A D | SDL_syscond.c | 106 struct timespec abstime; local 115 abstime.tv_sec = delta.tv_sec + (ms/1000); 116 abstime.tv_nsec = (delta.tv_usec + (ms%1000) * 1000) * 1000; 117 if ( abstime.tv_nsec > 1000000000 ) { 118 abstime.tv_sec += 1; 119 abstime.tv_nsec -= 1000000000; 123 retval = pthread_cond_timedwait(&cond->cond, &mutex->id, &abstime);
|
/external/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_platform_mac.cc | 96 void *abstime), void *c, void *m, void *abstime, 102 res = fn(c, m, abstime); 95 call_pthread_cancel_with_cleanup(int(*fn)(void *c, void *m, void *abstime), void *c, void *m, void *abstime, void(*cleanup)(void *arg), void *arg) argument
|
H A D | tsan_platform_linux.cc | 407 void *abstime), void *c, void *m, void *abstime, 413 res = fn(c, m, abstime); 406 call_pthread_cancel_with_cleanup(int(*fn)(void *c, void *m, void *abstime), void *c, void *m, void *abstime, void(*cleanup)(void *arg), void *arg) argument
|
H A D | tsan_interceptors.cc | 978 (int(*)(void *c, void *m, void *abstime))REAL(pthread_cond_wait), 986 INTERCEPTOR(int, pthread_cond_timedwait, void *c, void *m, void *abstime) { argument 988 SCOPED_TSAN_INTERCEPTOR(pthread_cond_timedwait, cond, m, abstime); 995 REAL(pthread_cond_timedwait), cond, m, abstime, 1065 TSAN_INTERCEPTOR(int, pthread_mutex_timedlock, void *m, void *abstime) { argument 1066 SCOPED_TSAN_INTERCEPTOR(pthread_mutex_timedlock, m, abstime); 1067 int res = REAL(pthread_mutex_timedlock)(m, abstime); 1153 TSAN_INTERCEPTOR(int, pthread_rwlock_timedrdlock, void *m, void *abstime) { argument 1154 SCOPED_TSAN_INTERCEPTOR(pthread_rwlock_timedrdlock, m, abstime); 1155 int res = REAL(pthread_rwlock_timedrdlock)(m, abstime); 1180 TSAN_INTERCEPTOR(int, pthread_rwlock_timedwrlock, void *m, void *abstime) argument 1275 TSAN_INTERCEPTOR(int, sem_timedwait, void *s, void *abstime) argument [all...] |
/external/chromium_org/third_party/libusb/src/libusb/os/ |
H A D | threads_windows.c | 178 const struct timespec *abstime) { 196 TIMESPEC_TO_TIMEVAL(&targ_time, abstime); 198 if(delta_time.tv_sec < 0) // abstime already passed? 176 usbi_cond_timedwait(usbi_cond_t *cond, usbi_mutex_t *mutex, const struct timespec *abstime) argument
|
/external/compiler-rt/lib/tsan/dd/ |
H A D | dd_interceptors.cc | 126 const timespec *abstime) { 128 int res = REAL(pthread_rwlock_timedrdlock)(m, abstime); 151 const timespec *abstime) { 153 int res = REAL(pthread_rwlock_timedwrlock)(m, abstime); 197 const timespec *abstime) { 202 int res = REAL(pthread_cond_timedwait)(cond, m, abstime); 125 INTERCEPTOR(int, pthread_rwlock_timedrdlock, pthread_rwlock_t *m, const timespec *abstime) argument 150 INTERCEPTOR(int, pthread_rwlock_timedwrlock, pthread_rwlock_t *m, const timespec *abstime) argument 196 INTERCEPTOR(int, pthread_cond_timedwait, pthread_cond_t *c, pthread_mutex_t *m, const timespec *abstime) argument
|
/external/valgrind/main/helgrind/ |
H A D | hg_intercepts.c | 752 struct timespec* abstime) 762 cond, mutex, abstime); 774 abstime_is_valid = abstime->tv_nsec >= 0 && abstime->tv_nsec < 1000000000; 785 CALL_FN_W_WWW(ret, fn, cond,mutex,abstime); 789 "invalid abstime did not cause" 818 struct timespec* abstime) { 819 return pthread_cond_timedwait_WRK(cond, mutex, abstime); 824 struct timespec* abstime) { 825 return pthread_cond_timedwait_WRK(cond, mutex, abstime); 750 pthread_cond_timedwait_WRK(pthread_cond_t* cond, pthread_mutex_t* mutex, struct timespec* abstime) argument 816 PTH_FUNC(int, pthreadZucondZutimedwaitZAZa, pthread_cond_t* cond, pthread_mutex_t* mutex, struct timespec* abstime) argument 822 PTH_FUNC(int, pthreadZucondZutimedwait, pthread_cond_t* cond, pthread_mutex_t* mutex, struct timespec* abstime) argument 827 PTH_FUNC(int, pthreadZucondZutimedwaitZDZa, pthread_cond_t* cond, pthread_mutex_t* mutex, struct timespec* abstime) argument 832 PTH_FUNC(int, pthreadZucondZutimedwaitZuZa, pthread_cond_t* cond, pthread_mutex_t* mutex, struct timespec* abstime) argument [all...] |
/external/bluetooth/bluedroid/gki/ulinux/ |
H A D | gki_ulinux.c | 766 struct timespec abstime = { 0, 0 }; local 784 clock_gettime(CLOCK_MONOTONIC, &abstime); 789 abstime.tv_nsec += nano_sec; 790 if (abstime.tv_nsec > NSEC_PER_SEC) 792 abstime.tv_sec += (abstime.tv_nsec / NSEC_PER_SEC); 793 abstime.tv_nsec = abstime.tv_nsec % NSEC_PER_SEC; 795 abstime.tv_sec += sec; 798 &gki_cb.os.thread_evt_mutex[rtask], &abstime); [all...] |
/external/libnfc-nci/halimpl/bcm2079x/gki/ulinux/ |
H A D | gki_ulinux.c | 644 struct timespec abstime = { 0, 0 }; local 692 // abstime.tv_sec = currSysTime.time; 693 // abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; 694 clock_gettime(CLOCK_MONOTONIC, &abstime); 699 abstime.tv_nsec += nano_sec; 700 if (abstime.tv_nsec > NSEC_PER_SEC) 702 abstime.tv_sec += (abstime.tv_nsec / NSEC_PER_SEC); 703 abstime.tv_nsec = abstime [all...] |
/external/libnfc-nci/src/gki/ulinux/ |
H A D | gki_ulinux.c | 621 struct timespec abstime = { 0, 0 }; local 669 // abstime.tv_sec = currSysTime.time; 670 // abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; 671 clock_gettime(CLOCK_MONOTONIC, &abstime); 676 abstime.tv_nsec += nano_sec; 677 if (abstime.tv_nsec > NSEC_PER_SEC) 679 abstime.tv_sec += (abstime.tv_nsec / NSEC_PER_SEC); 680 abstime.tv_nsec = abstime [all...] |
/external/valgrind/main/drd/ |
H A D | drd_pthread_intercepts.c | 753 const struct timespec* abstime) 760 CALL_FN_W_WWW(ret, fn, cond, mutex, abstime); 768 const struct timespec* abstime), 769 (cond, mutex, abstime)); 751 pthread_cond_timedwait_intercept(pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec* abstime) argument
|