/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/ |
H A D | 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. 43 struct timespec abs_timeout; in fn_rd_1() local 55 abs_timeout.tv_sec = currsec1 + TIMEOUT; in fn_rd_1() 56 abs_timeout.tv_nsec = 0; in fn_rd_1() 59 rc = pthread_rwlock_timedrdlock(&rwlock, &abs_timeout); in fn_rd_1() 88 struct timespec abs_timeout; in fn_rd_2() local 98 /* Ensure that the abs_timeout has passed by _subtracting_ the timeout value of 1 in fn_rd_2() 100 abs_timeout in fn_rd_2() [all...] |
H A D | 6-1.c | 75 struct timespec abs_timeout; in th_fn() local 89 abs_timeout.tv_sec = before_wait.tv_sec; in th_fn() 90 abs_timeout.tv_nsec = before_wait.tv_usec * 1000; in th_fn() 91 abs_timeout.tv_sec += TIMEOUT; in th_fn() 95 rc = pthread_rwlock_timedrdlock(&rwlock, &abs_timeout); in th_fn() 158 ("Test FAILED: thread blocked even afer the abs_timeout expired\n"); in main()
|
H A D | 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) 50 struct timespec abs_timeout; in fn_rd() local 57 abs_timeout.tv_sec = currsec1 - TIMEOUT; in fn_rd() 58 abs_timeout.tv_nsec = 0; in fn_rd() 61 rc = pthread_rwlock_timedrdlock(&rwlock, &abs_timeout); in fn_rd() 125 printf("Test FAILED: abs_timeout shoul in main() [all...] |
H A D | 6-2.c | 84 struct timespec abs_timeout; in th_fn() local 98 abs_timeout.tv_sec = before_wait.tv_sec + TIMEOUT; in th_fn() 99 abs_timeout.tv_nsec = before_wait.tv_usec * 1000; in th_fn() 104 rc = pthread_rwlock_timedrdlock(&rwlock, &abs_timeout); in th_fn() 199 ("Test FAILED: thread blocked even afer the abs_timeout expires\n"); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/ |
H A D | 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. 50 struct timespec abs_timeout; in fn_wr_1() local 62 abs_timeout.tv_sec = currsec1 + TIMEOUT; in fn_wr_1() 63 abs_timeout.tv_nsec = 0; in fn_wr_1() 66 rc = pthread_rwlock_timedwrlock(&rwlock, &abs_timeout); in fn_wr_1() 95 struct timespec abs_timeout; in fn_wr_2() local 106 abs_timeout.tv_sec = currsec1 - TIMEOUT; in fn_wr_2() 107 abs_timeout in fn_wr_2() [all...] |
H A D | 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 51 struct timespec abs_timeout; in fn() local 55 if (clock_gettime(CLOCK_REALTIME, &abs_timeout) != 0) { in fn() 64 abs_timeout.tv_sec -= TIMEOUT; in fn() 67 rc = pthread_rwlock_timedwrlock(&rwlock, &abs_timeout); in fn() 129 printf("Test FAILED: abs_timeout shoul in main() [all...] |
H A D | 6-2.c | 84 struct timespec abs_timeout; in th_fn() local 98 abs_timeout.tv_sec = before_wait.tv_sec + TIMEOUT; in th_fn() 99 abs_timeout.tv_nsec = before_wait.tv_usec * 1000; in th_fn() 104 rc = pthread_rwlock_timedwrlock(&rwlock, &abs_timeout); in th_fn() 199 ("Test FAILED: thread blocked even afer the abs_timeout expires\n"); in main()
|
H A D | 6-1.c | 75 struct timespec abs_timeout; in th_fn() local 89 abs_timeout.tv_sec = before_wait.tv_sec + TIMEOUT; in th_fn() 90 abs_timeout.tv_nsec = before_wait.tv_usec * 1000; in th_fn() 94 rc = pthread_rwlock_timedwrlock(&rwlock, &abs_timeout); in th_fn() 158 ("Test FAILED: thread blocked even afer the abs_timeout expired\n"); in main()
|
/third_party/musl/porting/linux/user/src/thread/ |
H A D | pthread_mutex_lock_timeout_np.c | 24 struct timespec abs_timeout; in pthread_mutex_lock_timeout_np() local 25 __absolute_timespec_from_timespec(&abs_timeout, &ts, CLOCK_MONOTONIC); in pthread_mutex_lock_timeout_np() 26 return pthread_mutex_timedlock_monotonic_np(mutex_interface, &abs_timeout); in pthread_mutex_lock_timeout_np()
|
H A D | pthread_cond_timeout_np.c | 22 struct timespec abs_timeout; in pthread_cond_timeout_np() local 23 __absolute_timespec_from_timespec(&abs_timeout, &ts, CLOCK_MONOTONIC); in pthread_cond_timeout_np() 24 return pthread_cond_timedwait_monotonic_np(cond, mutex, &abs_timeout); in pthread_cond_timeout_np()
|
H A D | pthread_mutex_clocklock.c | 19 const struct timespec* abs_timeout) in pthread_mutex_clocklock() 28 return __pthread_mutex_timedlock(mutex_interface, abs_timeout); in pthread_mutex_clocklock() 31 return __pthread_mutex_timedlock(mutex_interface, abs_timeout); in pthread_mutex_clocklock() 18 pthread_mutex_clocklock(pthread_mutex_t* mutex_interface, clockid_t clock_id, const struct timespec* abs_timeout) pthread_mutex_clocklock() argument
|
H A D | pthread_cond_clockwait.c | 19 clockid_t clock_id, const struct timespec *abs_timeout) in pthread_cond_clockwait() 27 return __pthread_cond_timedwait(cond, mutex, abs_timeout); in pthread_cond_clockwait() 30 return __pthread_cond_timedwait(cond, mutex, abs_timeout); in pthread_cond_clockwait() 18 pthread_cond_clockwait(pthread_cond_t *cond, pthread_mutex_t *mutex, clockid_t clock_id, const struct timespec *abs_timeout) pthread_cond_clockwait() argument
|
H A D | pthread_mutex_timedlock_monotonic_np.c | 18 int pthread_mutex_timedlock_monotonic_np(pthread_mutex_t* mutex_interface, const struct timespec* abs_timeout) in pthread_mutex_timedlock_monotonic_np() argument 24 return __pthread_mutex_timedlock(mutex_interface, abs_timeout); in pthread_mutex_timedlock_monotonic_np()
|
/third_party/musl/src/thread/ |
H A D | pthread_mutex_lock_timeout_np.c | 24 struct timespec abs_timeout; in pthread_mutex_lock_timeout_np() local 25 __absolute_timespec_from_timespec(&abs_timeout, &ts, CLOCK_MONOTONIC); in pthread_mutex_lock_timeout_np() 26 return pthread_mutex_timedlock_monotonic_np(mutex_interface, &abs_timeout); in pthread_mutex_lock_timeout_np()
|
H A D | pthread_cond_timeout_np.c | 22 struct timespec abs_timeout; in pthread_cond_timeout_np() local 23 __absolute_timespec_from_timespec(&abs_timeout, &ts, CLOCK_MONOTONIC); in pthread_cond_timeout_np() 24 return pthread_cond_timedwait_monotonic_np(cond, mutex, &abs_timeout); in pthread_cond_timeout_np()
|
H A D | pthread_mutex_clocklock.c | 19 const struct timespec* abs_timeout) in pthread_mutex_clocklock() 28 return __pthread_mutex_timedlock(mutex_interface, abs_timeout); in pthread_mutex_clocklock() 31 return __pthread_mutex_timedlock(mutex_interface, abs_timeout); in pthread_mutex_clocklock() 18 pthread_mutex_clocklock(pthread_mutex_t* mutex_interface, clockid_t clock_id, const struct timespec* abs_timeout) pthread_mutex_clocklock() argument
|
H A D | pthread_cond_clockwait.c | 19 clockid_t clock_id, const struct timespec *abs_timeout) in pthread_cond_clockwait() 27 return __pthread_cond_timedwait(cond, mutex, abs_timeout); in pthread_cond_clockwait() 30 return __pthread_cond_timedwait(cond, mutex, abs_timeout); in pthread_cond_clockwait() 18 pthread_cond_clockwait(pthread_cond_t *cond, pthread_mutex_t *mutex, clockid_t clock_id, const struct timespec *abs_timeout) pthread_cond_clockwait() argument
|
H A D | pthread_mutex_timedlock_monotonic_np.c | 18 int pthread_mutex_timedlock_monotonic_np(pthread_mutex_t* mutex_interface, const struct timespec* abs_timeout) in pthread_mutex_timedlock_monotonic_np() argument 24 return __pthread_mutex_timedlock(mutex_interface, abs_timeout); in pthread_mutex_timedlock_monotonic_np()
|
/third_party/mesa3d/src/gallium/drivers/v3d/ |
H A D | v3d_fence.c | 96 uint64_t abs_timeout = os_time_get_absolute_timeout(timeout_ns); in v3d_fence_wait() local 97 if (abs_timeout == OS_TIMEOUT_INFINITE) in v3d_fence_wait() 98 abs_timeout = INT64_MAX; in v3d_fence_wait() 100 ret = drmSyncobjWait(screen->fd, &syncobj, 1, abs_timeout, 0, NULL); in v3d_fence_wait()
|
/third_party/ltp/include/ |
H A D | tst_timer.h | 275 size_t msg_len, unsigned int msg_prio, void *abs_timeout) in libc_mq_timedsend() 277 return mq_timedsend(mqdes, msg_ptr, msg_len, msg_prio, abs_timeout); in libc_mq_timedsend() 281 size_t msg_len, unsigned int msg_prio, void *abs_timeout) in sys_mq_timedsend() 284 abs_timeout); in sys_mq_timedsend() 288 size_t msg_len, unsigned int msg_prio, void *abs_timeout) in sys_mq_timedsend64() 291 msg_prio, abs_timeout); in sys_mq_timedsend64() 295 size_t msg_len, unsigned int *msg_prio, void *abs_timeout) in libc_mq_timedreceive() 297 return mq_timedreceive(mqdes, msg_ptr, msg_len, msg_prio, abs_timeout); in libc_mq_timedreceive() 301 size_t msg_len, unsigned int *msg_prio, void *abs_timeout) in sys_mq_timedreceive() 304 msg_prio, abs_timeout); in sys_mq_timedreceive() 274 libc_mq_timedsend(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned int msg_prio, void *abs_timeout) libc_mq_timedsend() argument 280 sys_mq_timedsend(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned int msg_prio, void *abs_timeout) sys_mq_timedsend() argument 287 sys_mq_timedsend64(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned int msg_prio, void *abs_timeout) sys_mq_timedsend64() argument 294 libc_mq_timedreceive(mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned int *msg_prio, void *abs_timeout) libc_mq_timedreceive() argument 300 sys_mq_timedreceive(mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned int *msg_prio, void *abs_timeout) sys_mq_timedreceive() argument 307 sys_mq_timedreceive64(mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned int *msg_prio, void *abs_timeout) sys_mq_timedreceive64() argument [all...] |
/third_party/mesa3d/src/util/ |
H A D | os_time.c | 120 int64_t time, abs_timeout; in os_time_get_absolute_timeout() local 127 abs_timeout = time + (int64_t)timeout; in os_time_get_absolute_timeout() 130 if (abs_timeout < time) in os_time_get_absolute_timeout() 133 return abs_timeout; in os_time_get_absolute_timeout()
|
H A D | u_queue.h | 168 int64_t abs_timeout); 174 * \param abs_timeout the absolute timeout in nanoseconds, relative to the 181 int64_t abs_timeout) in util_queue_fence_wait_timeout() 186 if (abs_timeout == (int64_t)OS_TIMEOUT_INFINITE) { in util_queue_fence_wait_timeout() 191 return _util_queue_fence_wait_timeout(fence, abs_timeout); in util_queue_fence_wait_timeout() 180 util_queue_fence_wait_timeout(struct util_queue_fence *fence, int64_t abs_timeout) util_queue_fence_wait_timeout() argument
|
H A D | u_queue.c | 113 bool timeout, int64_t abs_timeout) in do_futex_fence_wait() 117 ts.tv_sec = abs_timeout / (1000*1000*1000); in do_futex_fence_wait() 118 ts.tv_nsec = abs_timeout % (1000*1000*1000); in do_futex_fence_wait() 147 int64_t abs_timeout) in _util_queue_fence_wait_timeout() 149 return do_futex_fence_wait(fence, true, abs_timeout); in _util_queue_fence_wait_timeout() 175 int64_t abs_timeout) in _util_queue_fence_wait_timeout() 181 int64_t rel = abs_timeout - os_time_get_nano(); in _util_queue_fence_wait_timeout() 188 ts.tv_sec += abs_timeout / (1000*1000*1000); in _util_queue_fence_wait_timeout() 189 ts.tv_nsec += abs_timeout % (1000*1000*1000); in _util_queue_fence_wait_timeout() 112 do_futex_fence_wait(struct util_queue_fence *fence, bool timeout, int64_t abs_timeout) do_futex_fence_wait() argument 146 _util_queue_fence_wait_timeout(struct util_queue_fence *fence, int64_t abs_timeout) _util_queue_fence_wait_timeout() argument 174 _util_queue_fence_wait_timeout(struct util_queue_fence *fence, int64_t abs_timeout) _util_queue_fence_wait_timeout() argument
|
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/internal/ |
H A D | waiter.cc | 177 struct timespec abs_timeout; in Wait() local 179 abs_timeout = t.MakeAbsTimespec(); in Wait() 197 const int err = pthread_cond_timedwait(&cv_, &mu_, &abs_timeout); in Wait() 250 struct timespec abs_timeout; in Wait() local 252 abs_timeout = t.MakeAbsTimespec(); in Wait() 279 if (sem_timedwait(&sem_, &abs_timeout) == 0) break; in Wait()
|
/third_party/ltp/testcases/kernel/syscalls/mq_timedreceive/ |
H A D | mq_timedreceive01.c | 157 void *abs_timeout; in do_test() local 179 abs_timeout = bad_addr; in do_test() 181 abs_timeout = tst_ts_get(tc->rq); in do_test() 183 TEST(tv->mqt_receive(*tc->fd, rmsg, len, &prio, abs_timeout)); in do_test()
|