]> Cypherpunks.ru repositories - gostls13.git/commit
net: refactor poller into new internal/poll package
authorIan Lance Taylor <iant@golang.org>
Fri, 10 Feb 2017 22:59:38 +0000 (14:59 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 13 Feb 2017 18:36:28 +0000 (18:36 +0000)
commit3792db518327c685da17ca6c6faa4e1d2da4c33c
tree8d2456fa679526c8349a968aaf3cae09524aadfd
parentb548eee3d96fc0b6e962a243b28121e1f37ad792
net: refactor poller into new internal/poll package

This will make it possible to use the poller with the os package.

This is a lot of code movement but the behavior is intended to be
unchanged.

Update #6817.
Update #7903.
Update #15021.
Update #18507.

Change-Id: I1413685928017c32df5654ded73a2643820977ae
Reviewed-on: https://go-review.googlesource.com/36799
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
79 files changed:
src/cmd/dist/deps.go
src/cmd/go/internal/work/build.go
src/go/build/deps_test.go
src/internal/poll/export_test.go [new file with mode: 0644]
src/internal/poll/fd.go [new file with mode: 0644]
src/internal/poll/fd_io_plan9.go [moved from src/net/fd_io_plan9.go with 91% similarity]
src/internal/poll/fd_mutex.go [moved from src/net/fd_mutex.go with 93% similarity]
src/internal/poll/fd_mutex_test.go [moved from src/net/fd_mutex_test.go with 67% similarity]
src/internal/poll/fd_plan9.go [new file with mode: 0644]
src/internal/poll/fd_poll_nacl.go [moved from src/net/fd_poll_nacl.go with 66% similarity]
src/internal/poll/fd_poll_runtime.go [moved from src/net/fd_poll_runtime.go with 79% similarity]
src/internal/poll/fd_posix.go [new file with mode: 0644]
src/internal/poll/fd_posix_test.go [new file with mode: 0644]
src/internal/poll/fd_unix.go [new file with mode: 0644]
src/internal/poll/fd_windows.go [new file with mode: 0644]
src/internal/poll/hook_cloexec.go [moved from src/net/hook_cloexec.go with 58% similarity]
src/internal/poll/hook_unix.go [new file with mode: 0644]
src/internal/poll/hook_windows.go [new file with mode: 0644]
src/internal/poll/sendfile_bsd.go [new file with mode: 0644]
src/internal/poll/sendfile_linux.go [new file with mode: 0644]
src/internal/poll/sendfile_solaris.go [new file with mode: 0644]
src/internal/poll/sendfile_windows.go [new file with mode: 0644]
src/internal/poll/sock_cloexec.go [new file with mode: 0644]
src/internal/poll/sockopt.go [new file with mode: 0644]
src/internal/poll/sockopt_linux.go [new file with mode: 0644]
src/internal/poll/sockopt_unix.go [new file with mode: 0644]
src/internal/poll/sockopt_windows.go [new file with mode: 0644]
src/internal/poll/sockoptip.go [new file with mode: 0644]
src/internal/poll/str.go [new file with mode: 0644]
src/internal/poll/sys_cloexec.go [new file with mode: 0644]
src/internal/poll/writev.go [new file with mode: 0644]
src/internal/poll/writev_test.go [new file with mode: 0644]
src/net/dial.go
src/net/dial_test.go
src/net/dnsclient_unix_test.go
src/net/error_posix.go [new file with mode: 0644]
src/net/error_test.go
src/net/fd_plan9.go
src/net/fd_posix.go [deleted file]
src/net/fd_posix_test.go [deleted file]
src/net/fd_unix.go
src/net/fd_windows.go
src/net/file_unix.go
src/net/hook_unix.go
src/net/hook_windows.go
src/net/ipsock_plan9.go
src/net/ipsock_posix.go
src/net/main_cloexec_test.go
src/net/main_unix_test.go
src/net/main_windows_test.go
src/net/net.go
src/net/sendfile_bsd.go
src/net/sendfile_linux.go
src/net/sendfile_solaris.go
src/net/sendfile_windows.go
src/net/sock_cloexec.go
src/net/sock_posix.go
src/net/sockopt_posix.go
src/net/sockoptip_bsd.go
src/net/sockoptip_linux.go
src/net/sockoptip_posix.go
src/net/sockoptip_windows.go
src/net/sys_cloexec.go
src/net/tcpsock.go
src/net/tcpsockopt_darwin.go
src/net/tcpsockopt_posix.go
src/net/tcpsockopt_solaris.go
src/net/tcpsockopt_unix.go
src/net/tcpsockopt_windows.go
src/net/timeout_test.go
src/net/unixsock.go
src/net/writev_test.go
src/net/writev_unix.go
src/runtime/net_plan9.go
src/runtime/netpoll.go
src/runtime/netpoll_windows.go
src/runtime/sema.go
src/runtime/time.go
src/runtime/trace/trace_stack_test.go