Abstract base for the backend that drives an EventBase loop.
Synopsis
Declared in <folly/io/async/EventBaseBackendBase.h>
class EventBaseBackendBase;
Types
Name |
Description |
Pair of poll‐loop hooks sharing a single opaque context pointer. |
Type Aliases
Name |
Description |
The event wrapper type used by this backend. |
|
Factory callable that creates a backend instance. |
|
Hook invoked immediately after the poll syscall. |
|
Hook invoked immediately before the poll syscall. |
|
Callback invoked with the number of bytes received via zero‐copy. |
Member Functions
Name |
Description |
|
Constructors |
|
Destroys the backend base. |
|
Deleted copy assignment. |
|
Marks an event as active with the given result flags. |
|
Adds an event to the backend, optionally with a timeout. |
|
Runs the backend event loop. |
Breaks out of the backend event loop. |
|
|
Removes an event from the backend. |
|
Returns the underlying libevent event_base. |
|
Returns the NAPI id of the backend, if any. |
|
Returns a pollable file descriptor for the backend, if any. |
|
Queues a zero‐copy receive request on the backend. |
|
Enables edge‐triggered mode for an event. |
Sets the poll‐loop hooks invoked around the poll syscall. |
Protected Data Members
Name |
Description |
The poll‐loop hooks invoked around the poll syscall. |
Derived Classes
Name |
Description |
Created with MrDocs