]> Cypherpunks repositories - gostls13.git/commit
Add explicit locking.
authorIan Lance Taylor <iant@golang.org>
Wed, 20 Jan 2010 05:09:58 +0000 (21:09 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 20 Jan 2010 05:09:58 +0000 (21:09 -0800)
commitb2beb8abf03f640d8ff69e9ad5108ce2f1054077
treeaec3f1c7e7d7a8fd57bbbcd3ff32f97716682a60
parentdfc0ed9559ebd732871d052992ee693c17d57734
Add explicit locking.

Since gcco runs goroutines in independent threads, it needs
locking for the global variables.  This shows up when I use
ordinary increments rather than locked increments for var++.

R=ken2, ken3
CC=golang-dev
https://golang.org/cl/190074
test/ken/chan.go