-
Dmitriy Vyukov authored
Do not synchronize Add(1) with Wait(). Imitate read on first Add(1) and write on Wait(), it allows to catch common misuses of WaitGroup: - Add() called in the additional goroutine itself - incorrect reuse of WaitGroup with multiple waiters R=golang-dev, iant CC=golang-dev https://golang.org/cl/10093044
0f4897ae