summaryrefslogtreecommitdiff
path: root/lib/thread/futex+freebsd.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread/futex+freebsd.myr')
-rw-r--r--lib/thread/futex+freebsd.myr10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/thread/futex+freebsd.myr b/lib/thread/futex+freebsd.myr
index 1ca52c7..c6e5aaa 100644
--- a/lib/thread/futex+freebsd.myr
+++ b/lib/thread/futex+freebsd.myr
@@ -13,11 +13,15 @@ const ftxwait = {uaddr, val, timeout
;;
var ut : sys._umtx_time = [
- ._timeout = timeout#
- ._flags = sys.Umtxabstime
+ ._timeout = timeout#,
+ ._flags = (sys.Umtxabstime : uint32),
._clockid = 1 /* CLOCK_MONOTONIC. Not exported from sys. */
]
- -> sys.umtx_op((uaddr : void#), sys.Umtxwaituintpriv, (val : uint64), (sys.sizeof(sys._umtx_time) : void#), &ut)
+ -> sys.umtx_op((uaddr : void#),
+ sys.Umtxwaituintpriv,
+ (val : uint64),
+ (sizeof(sys._umtx_time) : void#),
+ (&ut : void#))
}
const ftxwake = {uaddr