summaryrefslogtreecommitdiff
path: root/src/util/futex.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/futex.h')
-rw-r--r--src/util/futex.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/futex.h b/src/util/futex.h
index 142c3b62f0..fa42cf4cf5 100644
--- a/src/util/futex.h
+++ b/src/util/futex.h
@@ -43,6 +43,11 @@ static inline int futex_wake(uint32_t *addr)
return sys_futex(addr, FUTEX_WAKE, 1, NULL, NULL, 0);
}
+static inline int futex_wake_all(uint32_t *addr)
+{
+ return sys_futex(addr, FUTEX_WAKE, INT_MAX, NULL, NULL, 0);
+}
+
static inline int futex_wait(uint32_t *addr, int32_t value)
{
return sys_futex(addr, FUTEX_WAIT, value, NULL, NULL, 0);