Home | History | Annotate | Download | only in sync

Lines Matching refs:Counter

23 	// 64-bit value: high 32 bits are counter, low 32 bits are waiter count.
39 // Add adds delta, which may be negative, to the WaitGroup counter.
40 // If the counter becomes zero, all goroutines blocked on Wait are released.
41 // If the counter goes negative, Add panics.
43 // Note that calls with a positive delta that occur when the counter is zero
45 // positive delta that start when the counter is greater than zero, may happen
70 // several concurrent wg.counter transitions from 0.
75 panic("sync: negative WaitGroup counter")
83 // This goroutine has set counter to 0 when waiters > 0.
86 // - Wait does not increment waiters if it sees counter == 0.
98 // Done decrements the WaitGroup counter.
103 // Wait blocks until the WaitGroup counter is zero.
115 // Counter is 0, no need to wait.