Configuration options for the executor.
Declared in <folly/io/async/MuxIOThreadPoolExecutor.h>
struct Options;
| Name | Description |
|---|---|
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. |
| Name | Description |
|---|---|
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. |