Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
be more uniform on action cleaning accross activities
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Tue, 9 Mar 2021 15:43:02 +0000 (16:43 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Tue, 9 Mar 2021 15:43:02 +0000 (16:43 +0100)
src/kernel/activity/SleepImpl.cpp
src/kernel/activity/SynchroRaw.cpp

index 1125eae..2630930 100644 (file)
@@ -48,6 +48,8 @@ void SleepImpl::post()
   } else if (surf_action_->get_state() == resource::Action::State::FINISHED) {
     state_ = State::DONE;
   }
+
+  clean_action();
   /* Answer all simcalls associated with the synchro */
   finish();
 }
@@ -67,8 +69,6 @@ void SleepImpl::finish()
       simcall->issuer_->simcall_answer();
     }
   }
-
-  clean_action();
 }
 } // namespace activity
 } // namespace kernel
index 2f229fe..87900f3 100644 (file)
@@ -61,6 +61,9 @@ void RawImpl::post()
   } else if (surf_action_->get_state() == resource::Action::State::FINISHED) {
     state_ = State::SRC_TIMEOUT;
   }
+
+  clean_action();
+  /* Answer all simcalls associated with the synchro */
   finish();
 }