Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 20 Jul 2018 11:51:11 +0000 (13:51 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 20 Jul 2018 11:51:11 +0000 (13:51 +0200)
src/kernel/activity/ExecImpl.cpp

index 9cb7149..dc7dad5 100644 (file)
@@ -102,6 +102,8 @@ void simgrid::kernel::activity::ExecImpl::post()
     state_ = SIMIX_DONE;
   }
 
+  on_completion(this);
+
   if (surf_action_) {
     surf_action_->unref();
     surf_action_ = nullptr;
@@ -111,7 +113,6 @@ void simgrid::kernel::activity::ExecImpl::post()
     timeout_detector_ = nullptr;
   }
 
-  on_completion(this);
   /* If there are simcalls associated with the synchro, then answer them */
   if (not simcalls_.empty())
     SIMIX_execution_finish(this);