diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-11 16:34:50 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-11 16:34:50 +0100 |
| commit | 5ee36865697d2bac0baa3076ae6d533da8a69631 (patch) | |
| tree | 413aa1690c721b03e3ed19096825e7c0a476d3bc /core/sync/sync2 | |
| parent | d23144fd27a3d7174c4d42252cee3817c1286332 (diff) | |
Fix typo
Diffstat (limited to 'core/sync/sync2')
| -rw-r--r-- | core/sync/sync2/futex_windows.odin | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/core/sync/sync2/futex_windows.odin b/core/sync/sync2/futex_windows.odin index 6278e2f64..d4b594aed 100644 --- a/core/sync/sync2/futex_windows.odin +++ b/core/sync/sync2/futex_windows.odin @@ -22,13 +22,9 @@ _futex_wait :: proc(f: ^Futex, expect: u32) -> bool { _futex_wait_with_timeout :: proc(f: ^Futex, expect: u32, duration: time.Duration) -> bool { expect := expect - if duration <= 0 { - return bool(WaitOnAddress(f, &expect, size_of(expect), ~u32(0))) - } - - timeout := ~u32(0) + timeout := u32(0) if duration > 0 { - timeout = u32(timeout/1e6) + timeout = u32(duration/1e6) } return bool(WaitOnAddress(f, &expect, size_of(expect), timeout)) } |