MCPcopy Create free account
hub / github.com/cloudwego/netpoll / defaultPoll

Struct defaultPoll

poll_default_linux.go:59–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59type defaultPoll struct {
60 pollArgs
61 fd int // epoll fd
62 wop *FDOperator // eventfd, wake epoll_wait
63 buf []byte // read wfd trigger msg
64 trigger uint32 // trigger flag
65 m sync.Map //nolint:unused // only used in go:race
66 opcache *operatorCache // operator cache
67 // fns for handle events
68 Reset func(size, caps int)
69 Handler func(events []epollevent) (closed bool)
70}
71
72type pollArgs struct {
73 size int

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected