Descriptionsync: always wake up previously sleeping goroutines on Cond.Signal
This changes the internal implementation of Cond so that
it uses two generations of waiters. This enables Signal
to guarantee that it will only wake up waiters that are
currently sleeping at the call time.
Fixes issue 1648.
Patch Set 1 #Patch Set 2 : code review 4524083: sync: wake up current goroutine on Cond.Signal if waiters=0 #Patch Set 3 : diff -r b0c691bce96b https://go.googlecode.com/hg/ #Patch Set 4 : diff -r b0c691bce96b https://go.googlecode.com/hg/ #
Total comments: 3
Patch Set 5 : diff -r 824219c8f5c9 https://go.googlecode.com/hg/ #MessagesTotal messages: 11
|