mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 11:50:07 +00:00
Change futex_wait_with_timeout to return a boolean rather than an enum
This commit is contained in:
@@ -307,7 +307,7 @@ queue_item_wait_with_timeout :: proc(item: ^Queue_Item, duration: time.Duration)
|
||||
if remaining < 0 {
|
||||
return false
|
||||
}
|
||||
if futex_wait_with_timeout(&item.futex, 0, remaining) == .Timed_Out {
|
||||
if !futex_wait_with_timeout(&item.futex, 0, remaining) {
|
||||
return false
|
||||
}
|
||||
cpu_relax()
|
||||
|
||||
Reference in New Issue
Block a user