/external/valgrind/main/helgrind/tests/ |
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);
|
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/base/synchronization/ |
condition_variable_posix.cc | 49 struct timespec abstime; local 50 abstime.tv_sec = now.tv_sec + (usecs / Time::kMicrosecondsPerSecond); 51 abstime.tv_nsec = (now.tv_usec + (usecs % Time::kMicrosecondsPerSecond)) * 53 abstime.tv_sec += abstime.tv_nsec / Time::kNanosecondsPerSecond; 54 abstime.tv_nsec %= Time::kNanosecondsPerSecond; 55 DCHECK_GE(abstime.tv_sec, now.tv_sec); // Overflow paranoia 60 int rv = pthread_cond_timedwait(&condition_, user_mutex_, &abstime);
|
/external/qemu/distrib/sdl-1.2.15/src/thread/pthread/ |
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/ |
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/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/ |
pthread_rwlock_timedrdlock.c | 44 const struct timespec *abstime) 78 pthread_mutex_timedlock (&(rwl->mtxExclusiveAccess), abstime)) != 0) 87 abstime)) != 0)
|
pthread_rwlock_timedwrlock.c | 44 const struct timespec *abstime) 78 pthread_mutex_timedlock (&(rwl->mtxExclusiveAccess), abstime)) != 0) 85 abstime)) != 0) 117 abstime);
|
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 == NULL [all...] |
pthread_mutex_timedlock.c | 42 ptw32_timed_eventwait (HANDLE event, const struct timespec *abstime) 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))) [all...] |
ptw32_relmillisecs.c | 48 ptw32_relmillisecs (const struct timespec * abstime) 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 */
|
sem_timedwait.c | 98 sem_timedwait (sem_t * sem, const struct timespec *abstime) 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);
|
semaphore.h | 143 const struct timespec * abstime);
|
/bionic/libc/bionic/ |
pthread.c | 799 /* initialize 'ts' with the difference between 'abstime' and the current time 800 * according to 'clock'. Returns -1 if abstime already expired, or 0 otherwise. 803 __timespec_to_absolute(struct timespec* ts, const struct timespec* abstime, clockid_t clock) 806 ts->tv_sec = abstime->tv_sec - ts->tv_sec; 807 ts->tv_nsec = abstime->tv_nsec - ts->tv_nsec; 818 /* initialize 'abstime' to the current time according to 'clock' plus 'msecs' 822 __timespec_to_relative_msec(struct timespec* abstime, unsigned msecs, clockid_t clock) 824 clock_gettime(clock, abstime); 825 abstime->tv_sec += msecs/1000; 826 abstime->tv_nsec += (msecs%1000)*1000000 837 struct timespec abstime; local [all...] |
/external/chromium_org/third_party/libusb/src/libusb/os/ |
threads_windows.h | 81 const struct timespec *abstime);
|
/external/libnfc-nci/halimpl/bcm2079x/gki/ulinux/ |
gki_ulinux.c | 643 struct timespec abstime = { 0, 0 }; local 691 // abstime.tv_sec = currSysTime.time; 692 // abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; 693 clock_gettime(CLOCK_MONOTONIC, &abstime); 698 abstime.tv_nsec += nano_sec; 699 if (abstime.tv_nsec > NSEC_PER_SEC) 701 abstime.tv_sec += (abstime.tv_nsec / NSEC_PER_SEC); 702 abstime.tv_nsec = abstime.tv_nsec % NSEC_PER_SEC [all...] |
/external/libnfc-nci/src/gki/ulinux/ |
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.tv_nsec % NSEC_PER_SEC [all...] |
/development/ndk/sources/android/libportable/arch-mips/ |
pthread.c | 198 const struct timespec *abstime), (cond, mutex, abstime), 199 "(cond:%p, mutex:%p, abstime:%p)"); 202 pthread_mutex_t *mutex, const struct timespec *abstime), 203 (cond, mutex, abstime), "(cond:%p, mutex:%p, abstime:%p)"); 206 *mutex, const struct timespec *abstime), 207 (cond, mutex, abstime), "(cond:%p, mutex:%p, abstime:%p)");
|
/bionic/libc/include/ |
pthread.h | 185 const struct timespec *abstime); 187 /* BIONIC: same as pthread_cond_timedwait, except the 'abstime' given refers 193 const struct timespec *abstime); 200 const struct timespec *abstime);
|
/development/ndk/platforms/android-5/include/ |
pthread.h | 176 const struct timespec *abstime); 178 /* BIONIC: same as pthread_cond_timedwait, except the 'abstime' given refers 184 const struct timespec *abstime); 191 const struct timespec *abstime);
|
/development/ndk/platforms/android-8/include/ |
pthread.h | 181 const struct timespec *abstime); 183 /* BIONIC: same as pthread_cond_timedwait, except the 'abstime' given refers 189 const struct timespec *abstime); 196 const struct timespec *abstime);
|
/development/ndk/platforms/android-9/include/ |
pthread.h | 187 const struct timespec *abstime); 189 /* BIONIC: same as pthread_cond_timedwait, except the 'abstime' given refers 195 const struct timespec *abstime); 202 const struct timespec *abstime);
|
/prebuilts/ndk/4/platforms/android-5/arch-x86/usr/include/ |
pthread.h | 176 const struct timespec *abstime); 178 /* BIONIC: same as pthread_cond_timedwait, except the 'abstime' given refers 184 const struct timespec *abstime); 191 const struct timespec *abstime);
|
/prebuilts/ndk/4/platforms/android-8/arch-arm/usr/include/ |
pthread.h | 181 const struct timespec *abstime); 183 /* BIONIC: same as pthread_cond_timedwait, except the 'abstime' given refers 189 const struct timespec *abstime); 196 const struct timespec *abstime);
|
/prebuilts/ndk/4/platforms/android-8/arch-x86/usr/include/ |
pthread.h | 181 const struct timespec *abstime); 183 /* BIONIC: same as pthread_cond_timedwait, except the 'abstime' given refers 189 const struct timespec *abstime); 196 const struct timespec *abstime);
|
/prebuilts/ndk/5/platforms/android-5/arch-arm/usr/include/ |
pthread.h | 176 const struct timespec *abstime); 178 /* BIONIC: same as pthread_cond_timedwait, except the 'abstime' given refers 184 const struct timespec *abstime); 191 const struct timespec *abstime);
|