Abstract base for the backend that drives an EventBase loop.

Synopsis

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

class EventBaseBackendBase;

Types

Name

Description

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

EventBaseBackendBase [constructor]

Constructors

~EventBaseBackendBase [destructor] [virtual]

Destroys the backend base.

operator= [deleted]

Deleted copy assignment.

eb_event_active [virtual]

Marks an event as active with the given result flags.

eb_event_add [virtual]

Adds an event to the backend, optionally with a timeout.

eb_event_base_loop [virtual]

Runs the backend event loop.

eb_event_base_loopbreak [virtual]

Breaks out of the backend event loop.

eb_event_del [virtual]

Removes an event from the backend.

getEventBase [virtual]

Returns the underlying libevent event_base.

getNapiId [virtual]

Returns the NAPI id of the backend, if any.

getPollableFd [virtual]

Returns a pollable file descriptor for the backend, if any.

queueRecvZc [virtual]

Queues a zero‐copy receive request on the backend.

setEdgeTriggered [virtual]

Enables edge‐triggered mode for an event.

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.

Derived Classes

Name

Description

EpollBackend

Created with MrDocs