Skip to content

Commit 8dec2cd

Browse files
committed
updated executor
1 parent 86f287a commit 8dec2cd

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

taskflow/core/executor.hpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,14 @@ inline void Executor::_schedule(PassiveVector<Node*>& nodes) {
603603
}
604604
}
605605

606-
_notifier.notify(false);
606+
if(num_nodes >= _workers.size()) {
607+
_notifier.notify(true);
608+
}
609+
else {
610+
for(size_t k=0; k<num_nodes; ++k) {
611+
_notifier.notify(false);
612+
}
613+
}
607614
}
608615

609616
// Procedure: _init_module_node

0 commit comments

Comments
 (0)