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

Method Trigger

poll.go:33–33  ·  view source on GitHub ↗

Trigger can be used to actively refresh the loop where Wait is located when no event is triggered. On linux systems, eventfd is used by default, and kevent by default on bsd systems.

()

Source from the content-addressed store, hash-verified

31 // Trigger can be used to actively refresh the loop where Wait is located when no event is triggered.
32 // On linux systems, eventfd is used by default, and kevent by default on bsd systems.
33 Trigger() error
34
35 // Control the event of file descriptor and the operations is defined by PollEvent.
36 Control(operator *FDOperator, event PollEvent) error

Callers 1

TestPollTriggerFunction · 0.65

Implementers 1

defaultPollpoll_default_linux.go

Calls

no outgoing calls

Tested by 1

TestPollTriggerFunction · 0.52