mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-01 02:42:09 +00:00
Fix typo
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user