]> Cypherpunks repositories - gostls13.git/commit
runtime: change netpoll in preparation for windows implementation
authorAlex Brainman <alex.brainman@gmail.com>
Tue, 25 Jun 2013 02:29:00 +0000 (12:29 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 25 Jun 2013 02:29:00 +0000 (12:29 +1000)
commit8486d96a2720d6ce36b8125f636306f9f224fcf3
tree23db210e8db186263d967304acb8da14189876ac
parent02991bb960b4dcbcd9f9450d16df2251d964ed06
runtime: change netpoll in preparation for windows implementation

- change runtime_pollWait so it does not return
  closed or timeout if IO is ready - windows must
  know if IO has completed or not even after
  interruption;
- add (*pollDesc).Prepare(mode int) that can be
  used for both read and write, same for Wait;
- introduce runtime_pollWaitCanceled and expose
  it in net as (*pollDesc).WaitCanceled(mode int);

Full windows netpoll changes are
here https://golang.org/cl/8670044/.

R=golang-dev, dvyukov
CC=golang-dev
https://golang.org/cl/10485043
src/pkg/net/fd_poll_runtime.go
src/pkg/runtime/netpoll.goc