HomeSort by relevance Sort by last modified time
    Searched refs:abs_timeout (Results 1 - 25 of 48) sorted by null

1 2

  /bionic/libc/bionic/
bionic_futex.cpp 37 const timespec* abs_timeout, int bitset) {
38 const timespec* futex_abs_timeout = abs_timeout;
50 if (abs_timeout && use_realtime_clock) {
51 monotonic_time_from_realtime_time(converted_monotonic_abs_timeout, *abs_timeout);
62 const timespec* abs_timeout) {
64 use_realtime_clock, abs_timeout, FUTEX_BITSET_MATCH_ANY);
68 const timespec* abs_timeout) {
70 use_realtime_clock, abs_timeout, 0);
pthread_cond.cpp 214 const timespec* abs_timeout) {
215 return __pthread_cond_timedwait(__get_internal_cond(cond_interface), mutex, false, abs_timeout);
222 const timespec* abs_timeout) {
223 return pthread_cond_timedwait_monotonic_np(cond_interface, mutex, abs_timeout);
232 timespec* abs_timeout = nullptr; local
235 abs_timeout = &ts;
237 return __pthread_cond_timedwait(__get_internal_cond(cond_interface), mutex, false, abs_timeout);
semaphore.cpp 234 static int __sem_timedwait(sem_t* sem, const timespec* abs_timeout, bool use_realtime_clock) {
245 int result = check_timespec(abs_timeout, false);
261 use_realtime_clock, abs_timeout);
271 int sem_timedwait(sem_t* sem, const timespec* abs_timeout) {
272 return __sem_timedwait(sem, abs_timeout, true);
275 int sem_timedwait_monotonic_np(sem_t* sem, const timespec* abs_timeout) {
276 return __sem_timedwait(sem, abs_timeout, false);
pthread_rwlock.cpp 419 int pthread_rwlock_timedrdlock(pthread_rwlock_t* rwlock_interface, const timespec* abs_timeout) {
422 return __pthread_rwlock_timedrdlock(rwlock, true, abs_timeout);
426 const timespec* abs_timeout) {
429 return __pthread_rwlock_timedrdlock(rwlock, false, abs_timeout);
445 int pthread_rwlock_timedwrlock(pthread_rwlock_t* rwlock_interface, const timespec* abs_timeout) {
448 return __pthread_rwlock_timedwrlock(rwlock, true, abs_timeout);
452 const timespec* abs_timeout) {
455 return __pthread_rwlock_timedwrlock(rwlock, false, abs_timeout);
pthread_mutex.cpp 180 const timespec* abs_timeout) {
187 ret = -__futex_pi_lock_ex(&mutex.owner_tid, mutex.shared, use_realtime_clock, abs_timeout);
679 const timespec* abs_timeout) {
686 return __futex_wait_ex(&mutex->state, shared, old_state, use_realtime_clock, abs_timeout);
696 use_realtime_clock, abs_timeout);
941 timespec abs_timeout; local
    [all...]
  /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...]
6-1.c 76 struct timespec abs_timeout; local
90 abs_timeout.tv_sec = before_wait.tv_sec;
91 abs_timeout.tv_nsec = before_wait.tv_usec * 1000;
92 abs_timeout.tv_sec += TIMEOUT;
96 rc = pthread_rwlock_timedrdlock(&rwlock, &abs_timeout);
159 ("Test FAILED: thread blocked even afer the abs_timeout expired\n");
6-2.c 85 struct timespec abs_timeout; local
99 abs_timeout.tv_sec = before_wait.tv_sec + TIMEOUT;
100 abs_timeout.tv_nsec = before_wait.tv_usec * 1000;
105 rc = pthread_rwlock_timedrdlock(&rwlock, &abs_timeout);
200 ("Test FAILED: thread blocked even afer the abs_timeout expires\n");
  /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...]
6-1.c 76 struct timespec abs_timeout; local
90 abs_timeout.tv_sec = before_wait.tv_sec + TIMEOUT;
91 abs_timeout.tv_nsec = before_wait.tv_usec * 1000;
95 rc = pthread_rwlock_timedwrlock(&rwlock, &abs_timeout);
159 ("Test FAILED: thread blocked even afer the abs_timeout expired\n");
6-2.c 85 struct timespec abs_timeout; local
99 abs_timeout.tv_sec = before_wait.tv_sec + TIMEOUT;
100 abs_timeout.tv_nsec = before_wait.tv_usec * 1000;
105 rc = pthread_rwlock_timedwrlock(&rwlock, &abs_timeout);
200 ("Test FAILED: thread blocked even afer the abs_timeout expires\n");
  /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);
  /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;
  /bionic/libc/private/
bionic_futex.h 71 bool use_realtime_clock, const timespec* abs_timeout);
78 const timespec* abs_timeout);
  /device/google/marlin/camera/QCamera2/stack/common/
cam_semaphore.h 79 static inline int cam_sem_timedwait(cam_semaphore_t *s, const struct timespec *abs_timeout)
84 rc = pthread_cond_timedwait(&(s->cond), &(s->mutex), abs_timeout);
  /hardware/qcom/camera/msm8998/QCamera2/stack/common/
cam_semaphore.h 79 static inline int cam_sem_timedwait(cam_semaphore_t *s, const struct timespec *abs_timeout)
84 rc = pthread_cond_timedwait(&(s->cond), &(s->mutex), abs_timeout);
  /art/runtime/
barrier.cc 78 uint64_t abs_timeout = NanoTime() + MsToNs(timeout_ms); local
84 int64_t time_left = abs_timeout - now;
  /external/valgrind/drd/
drd_pthread_intercepts.c     [all...]
  /external/mesa3d/src/gallium/winsys/amdgpu/drm/
amdgpu_bo.c 53 int64_t abs_timeout; local
60 abs_timeout = os_time_get_absolute_timeout(timeout);
63 if (!os_wait_until_zero_abs_timeout(&bo->num_active_ioctls, abs_timeout))
117 if (amdgpu_fence_wait(fence, abs_timeout, true))
amdgpu_cs.c 85 int64_t abs_timeout; local
93 abs_timeout = timeout;
95 abs_timeout = os_time_get_absolute_timeout(timeout);
101 abs_timeout))
118 abs_timeout,
    [all...]
  /external/mesa3d/src/gallium/drivers/radeon/
r600_pipe_common.c 1123 int64_t abs_timeout = os_time_get_absolute_timeout(timeout); local
    [all...]
  /external/mesa3d/src/gallium/winsys/radeon/drm/
radeon_drm_bo.c 136 int64_t abs_timeout; local
142 abs_timeout = os_time_get_absolute_timeout(timeout);
145 if (!os_wait_until_zero_abs_timeout(&bo->num_active_ioctls, abs_timeout))
149 if (abs_timeout == PIPE_TIMEOUT_INFINITE) {
156 if (os_time_get_nano() >= abs_timeout)
    [all...]
  /external/compiler-rt/include/sanitizer/
linux_syscall_hooks.h     [all...]

Completed in 624 milliseconds

1 2