]> Cypherpunks repositories - gostls13.git/commit
net: let OS-specific AddFD routine wake up polling thread.
authorIan Lance Taylor <iant@golang.org>
Mon, 28 Mar 2011 19:39:09 +0000 (12:39 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 28 Mar 2011 19:39:09 +0000 (12:39 -0700)
commit0caa0c092384960e3f7bfd2a3f0ee9ca0cba18fa
tree80823cacc63ad5df9ad0fb4f7f5239e81bcebff9
parent5be77a204bee72c81a8f0182d0a23bfd32b36ab9
net: let OS-specific AddFD routine wake up polling thread.

With gccgo some operating systems require using select rather
than epoll or kevent.  Using select means that we have to wake
up the polling thread each time we add a new file descriptor.
This implements that in the generic code rather than adding
another wakeup channel, even though nothing in the current net
package uses the capability.

R=rsc, iant2
CC=golang-dev
https://golang.org/cl/4284069
src/pkg/net/fd.go
src/pkg/net/fd_darwin.go
src/pkg/net/fd_freebsd.go
src/pkg/net/fd_linux.go
src/pkg/net/newpollserver.go