Function core::arch::wasm32::memory_atomic_notify [−][src]
pub unsafe fn memory_atomic_notify(ptr: *mut i32, waiters: u32) -> u32
This is supported on WebAssembly and target feature
atomics only.Expand description
对应 wasm 的 memory.atomic.notify 指令
该函数将通知 ptr 指示的地址上阻塞的多个线程。
先前被上述 i32_atomic_wait 和 i64_atomic_wait 函数阻塞的线程将被唤醒。
waiters 参数指示应唤醒的等待者数量 (最大值)。
如果值为零,则不会唤醒任何等待者。
返回值
返回实际被通知的等待者的数量。