folly::MuxIOThreadPoolExecutor::Options

Configuration options for the executor.

Synopsis

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

struct Options;

Member Functions

NameDescription
Options [constructor]Constructs options with default values.
setEnableThreadIdCollection Sets whether per-thread id collection is enabled.
setIdleSpinMax Sets the maximum time an idle thread spins before going to sleep.
setNumEventBases Sets the number of EventBases in the pool.
setWakeUpInterval Sets the interval at which idle threads wake up to check for work.

Data Members

NameDescription
enableThreadIdCollection Whether per-thread id collection is enabled.
idleSpinMax Max spin for an idle thread waiting for work before going to sleep.
numEventBases Number of EventBases. If 0, it is set to the number of threads.
wakeUpInterval Interval at which idle threads wake up to check for work.