folly::EpollBackend

Synopsis

Declared in <folly/io/async/EpollBackend.h>

class EpollBackend
    : public EventBaseBackendBase

Base Classes

NameDescription
EventBaseBackendBaseAbstract base for the backend that drives an EventBase loop.

Types

NameDescription
Options
PollLoopHook Pair of poll-loop hooks sharing a single opaque context pointer.

Type Aliases

NameDescription
Event The event wrapper type used by this backend.
FactoryFunc Factory callable that creates a backend instance.
PostPollLoopHook Hook invoked immediately after the poll syscall.
PrePollLoopHook Hook invoked immediately before the poll syscall.
RecvZcCallback Callback invoked with the number of bytes received via zero-copy.

Member Functions

NameDescription
EpollBackend [constructor]Construct from Options
~EpollBackend [destructor] [virtual]Destructor
operator= [deleted]Deleted copy assignment.
eb_event_active Marks an event as active with the given result flags.
eb_event_add [virtual]
eb_event_base_loop [virtual]
eb_event_base_loopbreak [virtual]
eb_event_del [virtual]
getEpollFd
getEventBase [virtual]
getNapiId [virtual]Returns the NAPI id of the backend, if any.
getPollableFd [virtual]
queueRecvZc [virtual]Queues a zero-copy receive request on the backend.
setEdgeTriggered [virtual]
setPollLoopHook Sets the poll-loop hooks invoked around the poll syscall.

Protected Data Members

NameDescription
pollLoopHook_ The poll-loop hooks invoked around the poll syscall.