pub fn mutexUnlock(m: *Io.Mutex) void
Same as Io.Mutex.unlock but avoids the VTable.
Io.Mutex.unlock
m: *Io.Mutex
19095 19096 19097 19098 19099 19100 19101 19102 19103 19104
pub fn mutexUnlock(m: *Io.Mutex) void { switch (m.state.swap(.unlocked, .release)) { .unlocked => unreachable, .locked_once => {}, .contended => { @branchHint(.unlikely); Thread.futexWake(@ptrCast(&m.state.raw), 1); }, } }
Same as
Io.Mutex.unlockbut avoids the VTable.