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