Function core::source ·
arch:: wasm32:: memory_atomic_notify
pub unsafe fn memory_atomic_notify(ptr: *mut i32, waiters: u32) -> u32
🔬This is a nightly-only experimental API. (
target_family="wasm"and target feature
atomicsand WebAssembly only.
Corresponding intrinsic to wasm’s
This function will notify a number of threads blocked on the address
ptr. Threads previously blocked with the
i64_atomic_wait functions above will be woken up.
waiters argument indicates how many waiters should be woken up (a
maximum). If the value is zero no waiters are woken up.
Returns the number of waiters which were actually notified.