]> Cypherpunks repositories - gostls13.git/commit
change channel read to clear
authorKen Thompson <ken@golang.org>
Tue, 6 Apr 2010 23:58:52 +0000 (16:58 -0700)
committerKen Thompson <ken@golang.org>
Tue, 6 Apr 2010 23:58:52 +0000 (16:58 -0700)
commitdec248c6654cde9f556780c64769628920827e92
treed864b9da16078d821862d46a622eb5a551726c8b
parentcaa149f73da050377c8009ae4b7a565d6a36b3b9
change channel read to clear
data just read from the channel.
this will make it easier to
recognize when to garbage
collect and finalize.

R=rsc
CC=golang-dev
https://golang.org/cl/882043
src/pkg/runtime/chan.c