aboutsummaryrefslogtreecommitdiff
path: root/core/sync
diff options
context:
space:
mode:
authorpkova <pyry@urbit.org>2024-09-17 02:35:00 +0300
committerpkova <pyry@urbit.org>2024-09-17 02:35:00 +0300
commit6e0f1cc866e8a566a46ccaf9f14879e7ac344fe2 (patch)
treea12a58e4c7a02a9a778ea982faf63b8179a24f1a /core/sync
parent4d6f7dcac01061ee3060c14bb10e27f101998140 (diff)
Pass microseconds instead of nanoseconds to __ulock_wait
Diffstat (limited to 'core/sync')
-rw-r--r--core/sync/futex_darwin.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sync/futex_darwin.odin b/core/sync/futex_darwin.odin
index 5567be963..32fdb1552 100644
--- a/core/sync/futex_darwin.odin
+++ b/core/sync/futex_darwin.odin
@@ -57,7 +57,7 @@ _futex_wait_with_timeout :: proc "contextless" (f: ^Futex, expected: u32, durati
timeout_ns := u64(duration)
s := __ulock_wait2(UL_COMPARE_AND_WAIT | ULF_NO_ERRNO, f, u64(expected), timeout_ns, 0)
} else {
- timeout_us := u32(duration)
+ timeout_us := u32(duration) * 1000
s := __ulock_wait(UL_COMPARE_AND_WAIT | ULF_NO_ERRNO, f, u64(expected), timeout_us)
}
if s >= 0 {