Message:
Hello [email protected] (cc: [email protected]),
I'd like you to review this change to
https://go.googlecode.com/hg/
Description:
net: separate unix pollster initialization from network file descriptor
allocation
This is in preparation for runtime-integrated network pollster for BSD
variants.
Update issue 5199
Please review this at https://codereview.appspot.com/12663043/
Affected files:
M src/pkg/net/fd_poll_unix.go
Index: src/pkg/net/fd_poll_unix.go
===================================================================
--- a/src/pkg/net/fd_poll_unix.go
+++ b/src/pkg/net/fd_poll_unix.go
@@ -252,14 +252,23 @@
}
func (pd *pollDesc) Lock() {
+ if pd.pollServer == nil {
+ return
+ }
pd.pollServer.Lock()
}
func (pd *pollDesc) Unlock() {
+ if pd.pollServer == nil {
+ return
+ }
pd.pollServer.Unlock()
}
func (pd *pollDesc) Wakeup() {
+ if pd.pollServer == nil {
+ return
+ }
pd.pollServer.Wakeup()
}
@@ -294,6 +303,9 @@
}
func (pd *pollDesc) Evict() bool {
+ if pd.pollServer == nil {
+ return false
+ }
return pd.pollServer.Evict(pd)
}
--
---
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.