Skip to content
Snippets Groups Projects

Improved scheduling

Merged Olivier BICHLER requested to merge scheduling into dev
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -316,7 +316,7 @@ void Aidge::SequentialScheduler::generateEarlyLateScheduling(std::vector<StaticS
}
// Node can be run the earliest just after its latest parent was run
for (const auto parent : node->getParents()) {
for (const auto& parent : node->getParents()) {
// Find parent node latest scheduled position
const auto it = std::find_if(schedule.rend() - elt, schedule.rend(),
[parent](const auto& v) { return (v.node == parent); });
@@ -343,7 +343,7 @@ void Aidge::SequentialScheduler::generateEarlyLateScheduling(std::vector<StaticS
}
// Node can be run the latest just before its earliest child is run
for (const auto child : node->getChildren()) {
for (const auto& child : node->getChildren()) {
// Find child node earliest scheduled position
const auto it = std::find_if(schedule.begin() + elt + 1, schedule.end(),
[child](const auto& v) { return (v.node == child); });
Loading