X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/63dae9fee48b67ed8302130aa84c8a54cd42241b..3354174bd5dce6022d6f8ae963ec8ab8f53f3add:/src/kernel/EngineImpl.cpp diff --git a/src/kernel/EngineImpl.cpp b/src/kernel/EngineImpl.cpp index fecdfb99eb..d065c9fa2f 100644 --- a/src/kernel/EngineImpl.cpp +++ b/src/kernel/EngineImpl.cpp @@ -178,11 +178,10 @@ actor::ActorImpl* EngineImpl::get_actor_by_pid(aid_t pid) /** Execute all the tasks that are queued, e.g. `.then()` callbacks of futures. */ bool EngineImpl::execute_tasks() { - xbt_assert(tasksTemp.empty()); - if (tasks.empty()) return false; + std::vector> tasksTemp; do { // We don't want the callbacks to modify the vector we are iterating over: tasks.swap(tasksTemp);