Lines Matching refs:timeout
41 static inline long sys_futex(void *addr1, int op, int val1, const struct timespec *timeout, void *addr2, int val3)
43 return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3);
51 static inline int futex_wait(uint32_t *addr, int32_t value, const struct timespec *timeout)
54 * FUTEX_WAIT, except that it treats the timeout as absolute. */
55 return sys_futex(addr, FUTEX_WAIT_BITSET, value, timeout, NULL,
75 static inline int futex_wait(uint32_t *addr, int32_t value, struct timespec *timeout)
85 if (timeout != NULL) {
86 tmo._timeout = *timeout;
105 static inline int futex_wait(uint32_t *addr, int32_t value, const struct timespec *timeout)
109 if (timeout == NULL)
113 if (timespeccmp(&tsnow, timeout, <))
114 timespecsub(timeout, &tsnow, &tsrel);
142 static inline int futex_wait(uint32_t *addr, int32_t value, const struct timespec *timeout)
145 if (timeout != NULL) {
149 timeout_ms = (timeout->tv_sec - tsnow.tv_nsec) * 1000 +
150 (timeout->tv_nsec - tsnow.tv_nsec) / 1000000;