Skip to content

EntropyEngine::Core::Concurrency::IWorkScheduler::Config

EntropyEngine::Core::Concurrency::IWorkScheduler::Config

Section titled “EntropyEngine::Core::Concurrency::IWorkScheduler::Config”

Configuration for scheduler behavior. More…

#include <IWorkScheduler.h>

Name
size_tupdateCycleInterval
How often to refresh internal state (for adaptive schedulers).
size_tthreadCount
Number of worker threads (0 = hardware_concurrency).
size_tmaxConsecutiveExecutionCount
How many times to execute from same group before switching (prevents starvation).
size_tfailureSleepTime
Nanoseconds to sleep when no work found (usually not needed).
struct EntropyEngine::Core::Concurrency::IWorkScheduler::Config;

Configuration for scheduler behavior.

Provides common configuration parameters that schedulers may utilize. Schedulers can use any subset of these parameters or ignore them entirely. The WorkService passes this configuration through to schedulers without modification.

For additional configuration requirements, extend this structure or implement custom configuration mechanisms specific to your scheduler implementation.

size_t updateCycleInterval = 16;

How often to refresh internal state (for adaptive schedulers).

size_t threadCount = 0;

Number of worker threads (0 = hardware_concurrency).

size_t maxConsecutiveExecutionCount =
8;

How many times to execute from same group before switching (prevents starvation).

size_t failureSleepTime = 1;

Nanoseconds to sleep when no work found (usually not needed).


Updated on 2026-01-26 at 17:14:35 -0500