Home
last modified time | relevance | path

Searched refs:abs_timeout (Results 1 – 25 of 49) sorted by relevance

12

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/
D5-1.c50 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.tv_nsec = 0; in fn_wr_2()
110 rc = pthread_rwlock_timedwrlock(&rwlock, &abs_timeout); in fn_wr_2()
D2-1.c51 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()
D6-1.c75 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()
D6-2.c84 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()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/
D5-1.c43 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
100 abs_timeout.tv_sec = currsec1 - TIMEOUT; in fn_rd_2()
101 abs_timeout.tv_nsec = 0; in fn_rd_2()
104 rc = pthread_rwlock_timedrdlock(&rwlock, &abs_timeout); in fn_rd_2()
D6-1.c75 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()
D2-1.c50 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()
D6-2.c84 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()
/third_party/musl/porting/linux/user/src/thread/
Dpthread_mutex_lock_timeout_np.c24 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()
Dpthread_cond_timeout_np.c22 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()
Dpthread_mutex_clocklock.c19 const struct timespec* abs_timeout) in pthread_mutex_clocklock() argument
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()
Dpthread_cond_clockwait.c19 clockid_t clock_id, const struct timespec *abs_timeout) in pthread_cond_clockwait() argument
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()
Dpthread_mutex_timedlock_monotonic_np.c18 …_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()
Dpthread_cond_timedwait_monotonic_np.c19 const struct timespec *abs_timeout) in pthread_cond_timedwait_monotonic_np() argument
25 return __pthread_cond_timedwait(cond, mutex, abs_timeout); in pthread_cond_timedwait_monotonic_np()
/third_party/mesa3d/src/gallium/drivers/v3d/
Dv3d_fence.c96 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/mesa3d/src/util/
Dos_time.c120 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()
Du_queue.h168 int64_t abs_timeout);
181 int64_t abs_timeout) in util_queue_fence_wait_timeout() argument
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()
Du_queue.c113 bool timeout, int64_t abs_timeout) in do_futex_fence_wait() argument
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() argument
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() argument
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()
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/internal/
Dwaiter.cc177 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/include/
Dtst_timer.h275 size_t msg_len, unsigned int msg_prio, void *abs_timeout) in libc_mq_timedsend() argument
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() argument
284 abs_timeout); in sys_mq_timedsend()
288 size_t msg_len, unsigned int msg_prio, void *abs_timeout) in sys_mq_timedsend64() argument
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() argument
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() argument
304 msg_prio, abs_timeout); in sys_mq_timedreceive()
[all …]
Dtime64_variants.h47 unsigned int msg_prio, void *abs_timeout);
49 unsigned int *msg_prio, void *abs_timeout);
/third_party/ltp/testcases/kernel/syscalls/mq_timedreceive/
Dmq_timedreceive01.c157 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()
/third_party/ltp/testcases/kernel/syscalls/mq_timedsend/
Dmq_timedsend01.c170 void *msg_ptr, *abs_timeout; in do_test() local
195 abs_timeout = bad_addr; in do_test()
197 abs_timeout = tst_ts_get(tc->rq); in do_test()
199 TEST(tv->mqt_send(*tc->fd, msg_ptr, tc->len, tc->prio, abs_timeout)); in do_test()
/third_party/mesa3d/src/gallium/drivers/lima/
Dlima_bo.c525 int64_t abs_timeout; in lima_bo_wait() local
528 abs_timeout = 0; in lima_bo_wait()
530 abs_timeout = os_time_get_absolute_timeout(timeout_ns); in lima_bo_wait()
532 if (abs_timeout == OS_TIMEOUT_INFINITE) in lima_bo_wait()
533 abs_timeout = INT64_MAX; in lima_bo_wait()
538 .timeout_ns = abs_timeout, in lima_bo_wait()
/third_party/mesa3d/src/intel/vulkan/
Danv_bo_sync.c75 anv_get_relative_timeout(uint64_t abs_timeout) in anv_get_relative_timeout() argument
89 if (abs_timeout < now) in anv_get_relative_timeout()
92 uint64_t rel_timeout = abs_timeout - now; in anv_get_relative_timeout()

12