pub unsafe fn memory_atomic_notify(ptr: *mut i32, waiters: u32) -> u32
🔬This is a nightly-only experimental API. (stdsimd #48556)
Available on target_family="wasm" and target feature atomics and WebAssembly only.
Expand description

对应 wasm 的 memory.atomic.notify 指令

该函数将通知 ptr 指示的地址上阻塞的多个线程。 先前被上述 i32_atomic_waiti64_atomic_wait 函数阻塞的线程将被唤醒。

waiters 参数指示应唤醒的等待者数量 (最大值)。 如果值为零,则不会唤醒任何等待者。

返回值

返回实际被通知的等待者的数量。