/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/ |
5-1.c | 10 * acquired immediately. The abs_timeout parameter need not be checked if the lock 20 * specifying a 'abs_timeout'. The thread sleeps until 'abs_timeout' expires. 44 struct timespec abs_timeout; local 56 abs_timeout.tv_sec = currsec1 + TIMEOUT; 57 abs_timeout.tv_nsec = 0; 60 rc = pthread_rwlock_timedrdlock(&rwlock, &abs_timeout); 89 struct timespec abs_timeout; local 99 /* Ensure that the abs_timeout has passed by _subtracting_ the timeout value of 1 101 abs_timeout.tv_sec = currsec1 - TIMEOUT [all...] |
2-1.c | 9 * The timeout shall expire when the absolute time specified by abs_timeout passes, 11 * value of that clock equals or exceeds abs_timeout), or if the absolute time 12 * specified by abs_timeout has already been passed at the time of the call. 17 * 3. Create a child thread, specify a 'abs_timeout' as being the current time _minus_ 18 * a timeout value of 1. (this ensures that the abs_timeout has already passed) 51 struct timespec abs_timeout; local 58 abs_timeout.tv_sec = currsec1 - TIMEOUT; 59 abs_timeout.tv_nsec = 0; 62 rc = pthread_rwlock_timedrdlock(&rwlock, &abs_timeout); 126 printf("Test FAILED: abs_timeout should expire\n") [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/ |
5-1.c | 10 * acquired immediately. The abs_timeout parameter need not be checked if the lock 20 * specifying a 'abs_timeout'. The thread sleeps untile 'abs_timeout' expires. 51 struct timespec abs_timeout; local 63 abs_timeout.tv_sec = currsec1 + TIMEOUT; 64 abs_timeout.tv_nsec = 0; 67 rc = pthread_rwlock_timedwrlock(&rwlock, &abs_timeout); 96 struct timespec abs_timeout; local 107 abs_timeout.tv_sec = currsec1 - TIMEOUT; 108 abs_timeout.tv_nsec = 0 [all...] |
2-1.c | 9 * The timeout shall expire when the absolute time specified by abs_timeout passes, 11 * value of that clock equals or exceeds abs_timeout), or if the absolute time 12 * specified by abs_timeout has already been passed at the time of the call. 17 * 3. Create a child thread, specify a 'abs_timeout' as being the current time _minus_ a 18 * timeout period, meaning this will ensure that the abs_timeout would have already 52 struct timespec abs_timeout; local 56 if (clock_gettime(CLOCK_REALTIME, &abs_timeout) != 0) { 65 abs_timeout.tv_sec -= TIMEOUT; 68 rc = pthread_rwlock_timedwrlock(&rwlock, &abs_timeout); 130 printf("Test FAILED: abs_timeout should expire\n") [all...] |
/external/valgrind/drd/tests/ |
trylock.c | 24 struct timespec abs_timeout; local 26 time(&abs_timeout.tv_sec); 27 abs_timeout.tv_nsec = 0; 28 abs_timeout.tv_sec += 10; 39 r = pthread_rwlock_timedwrlock(&rwlock, &abs_timeout); assert(r == 0); 54 r = pthread_rwlock_timedrdlock(&rwlock, &abs_timeout); assert(r == 0); 72 r = pthread_mutex_timedlock(&mutex, &abs_timeout); assert(r == 0);
|
/development/ndk/platforms/android-21/include/ |
semaphore.h | 57 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/development/ndk/platforms/android-9/include/ |
semaphore.h | 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/external/mesa3d/src/gallium/auxiliary/os/ |
os_time.c | 114 int64_t time, abs_timeout; local 121 abs_timeout = time + (int64_t)timeout; 124 if (abs_timeout < time) 127 return abs_timeout;
|
/prebuilts/ndk/r10/platforms/android-12/arch-arm/usr/include/ |
semaphore.h | 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/r10/platforms/android-12/arch-mips/usr/include/ |
semaphore.h | 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/r10/platforms/android-12/arch-x86/usr/include/ |
semaphore.h | 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/r10/platforms/android-13/arch-arm/usr/include/ |
semaphore.h | 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/r10/platforms/android-13/arch-mips/usr/include/ |
semaphore.h | 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/r10/platforms/android-13/arch-x86/usr/include/ |
semaphore.h | 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/r10/platforms/android-14/arch-arm/usr/include/ |
semaphore.h | 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/r10/platforms/android-14/arch-mips/usr/include/ |
semaphore.h | 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/r10/platforms/android-14/arch-x86/usr/include/ |
semaphore.h | 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/r10/platforms/android-15/arch-arm/usr/include/ |
semaphore.h | 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/r10/platforms/android-15/arch-mips/usr/include/ |
semaphore.h | 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/r10/platforms/android-15/arch-x86/usr/include/ |
semaphore.h | 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/r10/platforms/android-16/arch-arm/usr/include/ |
semaphore.h | 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/r10/platforms/android-16/arch-mips/usr/include/ |
semaphore.h | 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/r10/platforms/android-16/arch-x86/usr/include/ |
semaphore.h | 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/r10/platforms/android-17/arch-arm/usr/include/ |
semaphore.h | 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/r10/platforms/android-17/arch-mips/usr/include/ |
semaphore.h | 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|