Function wake [src]

Unblocks at most max_waiters callers blocked in a wait() call on ptr.

Prototype

pub fn wake(ptr: *const atomic.Value(u32), max_waiters: u32) void

Parameters

ptr: *const atomic.Value(u32)max_waiters: u32

Source

pub fn wake(ptr: *const atomic.Value(u32), max_waiters: u32) void { @branchHint(.cold); // Avoid calling into the OS if there's nothing to wake up. if (max_waiters == 0) { return; } Impl.wake(ptr, max_waiters); }