EntropyEngine::Core::Concurrency::DependencyResolvedEvent
EntropyEngine::Core::Concurrency::DependencyResolvedEvent
Section titled “EntropyEngine::Core::Concurrency::DependencyResolvedEvent”One step closer - a parent completed and child’s dependency count dropped. More…
#include <WorkGraphEvents.h>
Inherits from EntropyEngine::Core::Concurrency::WorkGraphEvent
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| DependencyResolvedEvent(const WorkGraph * g, NodeHandle parent, NodeHandle child, uint32_t remaining) |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| NodeHandle | to Child being notified. |
| uint32_t | remainingDependencies How many more parents must complete. |
| NodeHandle | from Parent that just completed. |
Additional inherited members
Section titled “Additional inherited members”Public Functions inherited from EntropyEngine::Core::Concurrency::WorkGraphEvent
| Name | |
|---|---|
| WorkGraphEvent(const WorkGraph * g) |
Public Attributes inherited from EntropyEngine::Core::Concurrency::WorkGraphEvent
| Name | |
|---|---|
| std::chrono::steady_clock::time_point | timestamp When this event was created. |
| const WorkGraph * | graph Which graph emitted this event. |
Detailed Description
Section titled “Detailed Description”struct EntropyEngine::Core::Concurrency::DependencyResolvedEvent;One step closer - a parent completed and child’s dependency count dropped.
This granular event fires each time a parent node completes and decrements a child’s dependency counter. When remainingDependencies reaches zero, the child becomes ready. Useful for understanding the cascade of execution.
eventBus->subscribe<DependencyResolvedEvent>([](const auto& event) { LOG_DEBUG("{} completed, {} now has {} dependencies left", event.from.getData()->name, event.to.getData()->name, event.remainingDependencies);
if (event.remainingDependencies == 0) { LOG_INFO("{} is now ready!", event.to.getData()->name); }});Public Functions Documentation
Section titled “Public Functions Documentation”function DependencyResolvedEvent
Section titled “function DependencyResolvedEvent”inline DependencyResolvedEvent( const WorkGraph * g, NodeHandle parent, NodeHandle child, uint32_t remaining)Public Attributes Documentation
Section titled “Public Attributes Documentation”variable to
Section titled “variable to”NodeHandle to;Child being notified.
variable remainingDependencies
Section titled “variable remainingDependencies”uint32_t remainingDependencies;How many more parents must complete.
variable from
Section titled “variable from”NodeHandle from;Parent that just completed.
Updated on 2026-01-26 at 17:14:35 -0500