| 57 | } |
| 58 | |
| 59 | type 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 | |
| 72 | type pollArgs struct { |
| 73 | size int |
nothing calls this directly
no outgoing calls
no test coverage detected