aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/netpoll_stub.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2019-04-02 20:27:35 -0700
committerIan Lance Taylor <iant@golang.org>2019-10-15 20:29:56 +0000
commit831e3cfaa594ceb70c3cbeff2d31fddcd9a25a5e (patch)
tree6a5203ae8e7b24bce6e2c76986aecf17e039e4a7 /src/runtime/netpoll_stub.go
parent6da300b196df5fc3b33dd3bc87c477d46473abde (diff)
downloadgo-831e3cfaa594ceb70c3cbeff2d31fddcd9a25a5e.tar.gz
go-831e3cfaa594ceb70c3cbeff2d31fddcd9a25a5e.zip
runtime: change netpoll to take an amount of time to block
This new facility will be used by future CLs in this series. Change the only blocking call to netpoll to do the right thing when netpoll returns an empty list. Updates #6239 Updates #27707 Change-Id: I58b3c2903eda61a3698b1a4729ed0e81382bb1ed Reviewed-on: https://go-review.googlesource.com/c/go/+/171821 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com> Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Diffstat (limited to 'src/runtime/netpoll_stub.go')
-rw-r--r--src/runtime/netpoll_stub.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/netpoll_stub.go b/src/runtime/netpoll_stub.go
index f585333579..3437a27491 100644
--- a/src/runtime/netpoll_stub.go
+++ b/src/runtime/netpoll_stub.go
@@ -10,7 +10,7 @@ var netpollWaiters uint32
// Polls for ready network connections.
// Returns list of goroutines that become runnable.
-func netpoll(block bool) gList {
+func netpoll(delay int64) gList {
// Implementation for platforms that do not support
// integrated network poller.
return gList{}