IScheduler.Configuration

Aggregation of various size limits used internally by scheduler. Instance of this struct is used as initScheduler argument.

Default values of scheduler configuration are picked for convenient usage of SchedulerConfiguration.init in tests - large stack size but small queue limits.

Members

Structs

PoolDescription
struct PoolDescription

Defines single mapping of ClassInfo to worker fiber pool in configuration

Variables

specialized_pools
PoolDescription[] specialized_pools;

optional array that defines specialized worker fiber pools to be used for handling specific task kinds. Scheduled task is checked against this array every time thus it is not recommended to configure it to more than a few dedicated extra pools

task_queue_limit
size_t task_queue_limit;

maximum amount of tasks awaiting scheduling in the queue while all worker fibers are busy

worker_fiber_limit
size_t worker_fiber_limit;

maximum amount of simultaneous worker fibers in the scheduler pool

worker_fiber_stack_size
size_t worker_fiber_stack_size;

stack size allocated for all worker fibers created by the scheduler

Meta