Synopsis

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

class EpollBackend
    : public EventBaseBackendBase

Base Classes

Name

Description

EventBaseBackendBase

Abstract base for the backend that drives an EventBase loop.

Types

Name

Description

Options

PollLoopHook

Pair of poll‐loop hooks sharing a single opaque context pointer.

Type Aliases

Name

Description

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

Name

Description

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

Name

Description

pollLoopHook_

The poll‐loop hooks invoked around the poll syscall.

Created with MrDocs