Skip to content

Commit a1eb7c0

Browse files
updated executor
1 parent 45521c7 commit a1eb7c0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

taskflow/core/executor.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,14 +751,14 @@ inline void Executor::_sync_topology(Topology& tpg) {
751751
// Set the promise
752752
tpg._promise.set_value();
753753
f._topologies.pop_front();
754-
f._topologies.front()._bind(f._graph);
755754
f._mtx.unlock();
756755

757756
{
758757
std::scoped_lock lock(_topology_mutex);
759758
_num_topologies--;
760759
}
761760

761+
f._topologies.front()._bind(f._graph);
762762
_schedule(f._topologies.front()._sources);
763763
}
764764
else {
@@ -844,7 +844,6 @@ std::future<void> Executor::run_until(Taskflow& f, P&& pred, C&& c) {
844844
// Notice here calling schedule may cause the topology to be removed sonner
845845
// before the function leaves.
846846
if(run_now) {
847-
// TODO: seg fault
848847
tpg->_bind(f._graph);
849848
_schedule(tpg->_sources);
850849
}

0 commit comments

Comments
 (0)