• Ian Lance Taylor's avatar
    net: don't loop to drain wakeup pipe. · c01238a5
    Ian Lance Taylor authored
    The loop always makes an extra system call.  It only makes a
    difference if more than 100 goroutines started waiting for
    something to happen on a network file descriptor since the
    last time the pipe was drained, which is unlikely since we
    will be woken up the first time a goroutine starts waiting.
    If we don't drain the pipe this time, we'll be woken up again
    right away and can drain again.
    
    R=rsc
    CC=golang-dev
    https://golang.org/cl/4275042
    c01238a5
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...