start
Function parameters
Parameters
- self:*WaitGroup
Functions in this namespace
Functions
Source
Implementation
pub fn start(self: *WaitGroup) void {
const state = self.state.fetchAdd(one_pending, .monotonic);
assert((state / one_pending) < (std.math.maxInt(usize) / one_pending));
}