Configuration options for constructing an EventBase.

Synopsis

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

struct Options;

Type Aliases

Name

Description

BackendFactory

Factory function for creating the backend.

Member Functions

Name

Description

Options [constructor]

Constructs options with default values.

setBackendFactory

Sets the factory used to create the backend.

setLoopCallbacksTimeslice

Sets the per‐iteration timeslice for loop and queue callbacks.

setSkipTimeMeasurement

Sets whether to skip measuring loop durations.

setTimerTickInterval

Sets the granularity of the wheel timer.

Data Members

Name

Description

backendFactory

The factory used to create the EventBase backend.

loopCallbacksTimeslice

If non‐zero, processing of loop callback and notification queue callbacks will only be allowed to run for this timeslice within each iteration (each gets one timeslice per iteration). This can be used to prevent the queues to starve event handling or each other.

skipTimeMeasurement

Skip measuring event base loop durations.

timerTickInterval

Granularity of the wheel timer in the EventBase.

Created with MrDocs