]> Cypherpunks repositories - gostls13.git/commit
runtime: add new addtimer function
authorIan Lance Taylor <iant@golang.org>
Thu, 11 Apr 2019 00:56:18 +0000 (17:56 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 22 Oct 2019 18:41:00 +0000 (18:41 +0000)
commit2e0aa581b4a2544249ad2f8e86e17204ca778ca7
treefd16f15efc56946b7f51343440457726b32be80a
parent3db6d46a4e0ee33eb34cef29f797ab7c12530a80
runtime: add new addtimer function

When we add a timer, make sure that the network poller is initialized,
since we will use it if we have to wait for the timer to be ready.

Updates #27707

Change-Id: I0637fe646bade2cc5ce50b745712292aa9c445b1
Reviewed-on: https://go-review.googlesource.com/c/go/+/171830
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/netpoll.go
src/runtime/netpoll_stub.go
src/runtime/time.go