diff options
Diffstat (limited to 'libgo/go/sync/waitgroup.go')
-rw-r--r-- | libgo/go/sync/waitgroup.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/sync/waitgroup.go b/libgo/go/sync/waitgroup.go index b386e1f..f266f7c 100644 --- a/libgo/go/sync/waitgroup.go +++ b/libgo/go/sync/waitgroup.go @@ -91,11 +91,11 @@ func (wg *WaitGroup) Add(delta int) { // Reset waiters count to 0. *statep = 0 for ; w != 0; w-- { - runtime_Semrelease(&wg.sema) + runtime_Semrelease(&wg.sema, false) } } -// Done decrements the WaitGroup counter. +// Done decrements the WaitGroup counter by one. func (wg *WaitGroup) Done() { wg.Add(-1) } |