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>
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| size_t | updateCycleInterval How often to refresh internal state (for adaptive schedulers). |
| size_t | threadCount Number of worker threads (0 = hardware_concurrency). |
| size_t | maxConsecutiveExecutionCount How many times to execute from same group before switching (prevents starvation). |
| size_t | failureSleepTime Nanoseconds to sleep when no work found (usually not needed). |
Detailed Description
Section titled “Detailed Description”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.
Public Attributes Documentation
Section titled “Public Attributes Documentation”variable updateCycleInterval
Section titled “variable updateCycleInterval”size_t updateCycleInterval = 16;How often to refresh internal state (for adaptive schedulers).
variable threadCount
Section titled “variable threadCount”size_t threadCount = 0;Number of worker threads (0 = hardware_concurrency).
variable maxConsecutiveExecutionCount
Section titled “variable maxConsecutiveExecutionCount”size_t maxConsecutiveExecutionCount =8;How many times to execute from same group before switching (prevents starvation).
variable failureSleepTime
Section titled “variable failureSleepTime”size_t failureSleepTime = 1;Nanoseconds to sleep when no work found (usually not needed).
Updated on 2026-01-26 at 17:14:35 -0500