Skip to content

Commit

Permalink
sync: fix require results
Browse files Browse the repository at this point in the history
  • Loading branch information
laytan committed Dec 5, 2024
1 parent ad438f4 commit ac3a87c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/sync/futex_wasm.odin
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ _futex_wait :: proc "contextless" (f: ^Futex, expected: u32) -> bool {
when !intrinsics.has_target_feature("atomics") {
panic_contextless("usage of `core:sync` requires the `-target-feature:\"atomics\"` or a `-microarch` that supports it")
} else {
intrinsics.wasm_memory_atomic_wait32((^u32)(f), expected, -1)
_ := intrinsics.wasm_memory_atomic_wait32((^u32)(f), expected, -1)
return true
}
}
Expand All @@ -30,15 +30,15 @@ _futex_signal :: proc "contextless" (f: ^Futex) {
when !intrinsics.has_target_feature("atomics") {
panic_contextless("usage of `core:sync` requires the `-target-feature:\"atomics\"` or a `-microarch` that supports it")
} else {
intrinsics.wasm_memory_atomic_notify32((^u32)(f), 1)
_ := intrinsics.wasm_memory_atomic_notify32((^u32)(f), 1)
}
}

_futex_broadcast :: proc "contextless" (f: ^Futex) {
when !intrinsics.has_target_feature("atomics") {
panic_contextless("usage of `core:sync` requires the `-target-feature:\"atomics\"` or a `-microarch` that supports it")
} else {
intrinsics.wasm_memory_atomic_notify32((^u32)(f), max(u32))
_ := intrinsics.wasm_memory_atomic_notify32((^u32)(f), max(u32))
}
}

0 comments on commit ac3a87c

Please sign in to comment.