Skip to main content

Module completion

Module completion 

Source
Expand description

Per-frame agent completion tracking — the synchronization primitive used by the scheduler to coordinate agents that declare Hard dependencies.

At frame start the scheduler builds an AgentCompletionMap populated with one StageHandle<AgentDone> per known agent. After each agent execute() (or skip), the scheduler calls AgentCompletionMap::mark with a CompletionOutcome. Dependents either inspect the outcome synchronously via AgentCompletionMap::outcome or — once the parallel scheduler is enabled — await it via AgentCompletionMap::wait.

Structs§

AgentCompletionMap
Frame-scoped map of agent completion handles.
AgentDone
Marker type for the “an agent finished its frame work” stage.

Enums§

CompletionOutcome
What happened to an agent this frame, from the scheduler’s point of view.