runtime: add netpollBreak

The new netpollBreak function can be used to interrupt a blocking netpoll.
This function is not currently used; it will be used by later CLs.

Updates #27707

Change-Id: I5cb936609ba13c3c127ea1368a49194fc58c9f4d
Reviewed-on: https://go-review.googlesource.com/c/go/+/171824
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
Ian Lance Taylor 2019-04-05 15:53:12 -07:00
parent 33425ab8db
commit 50f4896b72
34 changed files with 322 additions and 53 deletions

View file

@ -35,6 +35,9 @@ var Atoi = atoi
var Atoi32 = atoi32
var Nanotime = nanotime
var Netpoll = netpoll
var NetpollBreak = netpollBreak
var Usleep = usleep
var PhysHugePageSize = physHugePageSize