diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-06-07 20:26:31 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-06-07 20:27:33 +0200 |
| commit | b35e72c82b53be5ae16b1a0923ae948183a32a8d (patch) | |
| tree | 920a529e113ee177be7e3d8622b10fd3982a0cb4 /core/sync | |
| parent | 7c977bb859bd1559bfa2467bb1fa7bbf84a8f927 (diff) | |
core/sync: fix wrong timeout calculation, `time.Duration` is ns already
Diffstat (limited to 'core/sync')
| -rw-r--r-- | core/sync/futex_darwin.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sync/futex_darwin.odin b/core/sync/futex_darwin.odin index 6ea177d1b..fca9aadfe 100644 --- a/core/sync/futex_darwin.odin +++ b/core/sync/futex_darwin.odin @@ -52,7 +52,7 @@ _futex_wait_with_timeout :: proc "contextless" (f: ^Futex, expected: u32, durati } } else { - timeout_ns := u32(duration) * 1000 + timeout_ns := u32(duration) s := __ulock_wait(UL_COMPARE_AND_WAIT | ULF_NO_ERRNO, f, u64(expected), timeout_ns) if s >= 0 { return true |