diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-04-08 13:55:23 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-04-08 13:56:04 +0200 |
| commit | ce196529dcb62a1955ca1156090c444947e92fa6 (patch) | |
| tree | bd26ede79b3ed51f5162f3d81033e3b2f44a79a7 /base | |
| parent | 9d8bb7f4e4f0c541b363a1ee4caccf9e6aa211fa (diff) | |
enable the required target feature `atomics` when using them in wasm
Diffstat (limited to 'base')
| -rw-r--r-- | base/intrinsics/intrinsics.odin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/intrinsics/intrinsics.odin b/base/intrinsics/intrinsics.odin index 78f4f3f41..458596adf 100644 --- a/base/intrinsics/intrinsics.odin +++ b/base/intrinsics/intrinsics.odin @@ -293,7 +293,9 @@ wasm_memory_size :: proc(index: uintptr) -> int --- // 0 - indicates that the thread blocked and then was woken up // 1 - the loaded value from `ptr` did not match `expected`, the thread did not block // 2 - the thread blocked, but the timeout +@(enable_target_feature="atomics") wasm_memory_atomic_wait32 :: proc(ptr: ^u32, expected: u32, timeout_ns: i64) -> u32 --- +@(enable_target_feature="atomics") wasm_memory_atomic_notify32 :: proc(ptr: ^u32, waiters: u32) -> (waiters_woken_up: u32) --- // x86 Targets (i386, amd64) |