Update mutexes.go
This commit is contained in:
parent
6540da53ce
commit
221e8afaab
@ -56,7 +56,7 @@ func main() {
|
|||||||
go doIncrement("a", 10000)
|
go doIncrement("a", 10000)
|
||||||
go doIncrement("b", 10000)
|
go doIncrement("b", 10000)
|
||||||
|
|
||||||
// Wait a for the goroutines to finish
|
// Wait for the goroutines to finish
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
fmt.Println(c.counters)
|
fmt.Println(c.counters)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user