fn fromWaiter(w: ?*Waiter) State
Returns a locked state where w is contending the lock. If w is null, returns .locked_once.
w
null
.locked_once
w: ?*Waiter
17901 17902 17903
fn fromWaiter(w: ?*Waiter) State { return @fromBackingInt(@intCast(@intFromPtr(w))); }
Returns a locked state where
wis contending the lock. Ifwisnull, returns.locked_once.