Descriptionnet: more refactoring in preparation for runtime integrated pollster
Move pollServer from fd_unix.go to fd_poll_unix.go.
Add pollServerInit(*NetFD) to allow custom initialization.
Add pollServer.Close(*NetFD) to allow custom finalization.
Move setDeadline() to fd_poll_unix.go to allow custom handling of deadlines.
Move newPollServer() to fd_poll_unix.go to allow custom initialization.
No logical code changes.
The next step will be to turn off fd_poll_unix.go for some platform
(I have changes for darwin/linux) and redirect it into runtime. See:
https://codereview.appspot.com/7569043/diff/2001/src/pkg/net/fd_poll_runtime.go
Patch Set 1 #Patch Set 2 : diff -r 790eddf30d5d https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 3 : diff -r 790eddf30d5d https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 4 : diff -r 790eddf30d5d https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 5 : diff -r 790eddf30d5d https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 6 : diff -r 790eddf30d5d https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 7 : diff -r a346bcf77992 https://dvyukov%40google.com@code.google.com/p/go/ #
Total comments: 2
MessagesTotal messages: 5
|