/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/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/bluetooth/bluedroid/gki/ulinux/ |
gki_ulinux.c | 754 struct timespec abstime = { 0, 0 }; local 772 clock_gettime(CLOCK_MONOTONIC, &abstime); 777 abstime.tv_nsec += nano_sec; 778 if (abstime.tv_nsec > NSEC_PER_SEC) 780 abstime.tv_sec += (abstime.tv_nsec / NSEC_PER_SEC); 781 abstime.tv_nsec = abstime.tv_nsec % NSEC_PER_SEC; 783 abstime.tv_sec += sec; 786 &gki_cb.os.thread_evt_mutex[rtask], &abstime); [all...] |
/external/libnfc-nci/halimpl/bcm2079x/gki/ulinux/ |
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.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...] |
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
gscan.cpp | 1348 struct timespec abstime; local [all...] |
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
AbstractQueuedLongSynchronizer.java | 1857 long abstime = deadline.getTime(); local [all...] |
AbstractQueuedSynchronizer.java | 2085 long abstime = deadline.getTime(); local [all...] |