Skip to content

EntropyEngine::Core::Concurrency::IWorkScheduler::ScheduleResult

EntropyEngine::Core::Concurrency::IWorkScheduler::ScheduleResult

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

Result of a scheduling decision. More…

#include <IWorkScheduler.h>

Name
boolshouldSleep
Hint: true if thread should sleep vs spin (ignored if group != nullptr).
WorkContractGroup *group
Group to execute from (nullptr = no work available).
struct EntropyEngine::Core::Concurrency::IWorkScheduler::ScheduleResult;

Result of a scheduling decision.

Encapsulates the scheduler’s decision for the worker thread. Indicates either a selected work group or the absence of available work. The shouldSleep hint guides the WorkService in choosing between spinning and backing off when no work is available.

bool shouldSleep;

Hint: true if thread should sleep vs spin (ignored if group != nullptr).

WorkContractGroup * group;

Group to execute from (nullptr = no work available).


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