Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove function from list before use.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 29 Sep 2017 20:08:20 +0000 (22:08 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 29 Sep 2017 20:08:20 +0000 (22:08 +0200)
src/simix/ActorImpl.cpp

index e86f285..71f32ef 100644 (file)
@@ -821,8 +821,8 @@ void SIMIX_process_on_exit_runall(smx_actor_t process) {
   smx_process_exit_status_t exit_status = (process->context->iwannadie) ? SMX_EXIT_FAILURE : SMX_EXIT_SUCCESS;
   while (not process->on_exit.empty()) {
     s_smx_process_exit_fun_t exit_fun = process->on_exit.back();
-    (exit_fun.fun)((void*)exit_status, exit_fun.arg);
     process->on_exit.pop_back();
+    (exit_fun.fun)((void*)exit_status, exit_fun.arg);
   }
 }