Lines Matching defs:addr
46 static inline int futex_wake(uint32_t *addr, int count)
48 return sys_futex(addr, FUTEX_WAKE, count, NULL, NULL, 0);
51 static inline int futex_wait(uint32_t *addr, int32_t value, const struct timespec *timeout)
55 return sys_futex(addr, FUTEX_WAIT_BITSET, value, timeout, NULL,
69 static inline int futex_wake(uint32_t *addr, int count)
72 return _umtx_op(addr, UMTX_OP_WAKE, (uint32_t)count, NULL, NULL) == -1 ? errno : 0;
75 static inline int futex_wait(uint32_t *addr, int32_t value, struct timespec *timeout)
91 return _umtx_op(addr, UMTX_OP_WAIT_UINT, (uint32_t)value, uaddr, uaddr2) == -1 ? errno : 0;
100 static inline int futex_wake(uint32_t *addr, int count)
102 return futex(addr, FUTEX_WAKE, count, NULL, NULL);
105 static inline int futex_wait(uint32_t *addr, int32_t value, const struct timespec *timeout)
110 return futex(addr, FUTEX_WAIT, value, NULL, NULL);
117 return futex(addr, FUTEX_WAIT, value, &tsrel, NULL);
129 static inline int futex_wake(uint32_t *addr, int count)
136 WakeByAddressSingle(addr);
138 WakeByAddressAll(addr);
142 static inline int futex_wait(uint32_t *addr, int32_t value, const struct timespec *timeout)
153 if (WaitOnAddress(addr, &value, sizeof(value), timeout_ms))