Lines Matching refs:timeout
37 static inline long sys_futex(void *addr1, int op, int val1, const struct timespec *timeout, void *addr2, int val3)
39 return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3);
47 static inline int futex_wait(uint32_t *addr, int32_t value, const struct timespec *timeout)
50 * FUTEX_WAIT, except that it treats the timeout as absolute. */
51 return sys_futex(addr, FUTEX_WAIT_BITSET, value, timeout, NULL,
71 static inline int futex_wait(uint32_t *addr, int32_t value, struct timespec *timeout)
81 if (timeout != NULL) {
82 tmo._timeout = *timeout;
101 static inline int futex_wait(uint32_t *addr, int32_t value, const struct timespec *timeout)
105 if (timeout == NULL)
109 if (timespeccmp(&tsnow, timeout, <))
110 timespecsub(timeout, &tsnow, &tsrel);