mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: use eventfd as the event wait/notify mechanism for epoll
Fixes #65443 Change-Id: I9ad4689b36e87ee930d35a38322a8797896483b4 Reviewed-on: https://go-review.googlesource.com/c/go/+/560615 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Than McIntosh <thanm@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Jorropo <jorropo.pgm@gmail.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
c4d55ab912
commit
d068c2cb62
13 changed files with 58 additions and 24 deletions
|
|
@ -12,6 +12,7 @@ const (
|
|||
SYS_EPOLL_PWAIT = 5272
|
||||
SYS_EPOLL_CREATE1 = 5285
|
||||
SYS_EPOLL_PWAIT2 = 5441
|
||||
SYS_EVENTFD2 = 5284
|
||||
|
||||
EPOLLIN = 0x1
|
||||
EPOLLOUT = 0x4
|
||||
|
|
@ -23,6 +24,7 @@ const (
|
|||
EPOLL_CTL_ADD = 0x1
|
||||
EPOLL_CTL_DEL = 0x2
|
||||
EPOLL_CTL_MOD = 0x3
|
||||
EFD_NONBLOCK = 0x80
|
||||
)
|
||||
|
||||
type EpollEvent struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue