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

@ -24,8 +24,6 @@ const (
// From <sys/lwp.h>
_LWP_DETACHED = 0x00000040
_EAGAIN = 35
)
type mOS struct {