Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
small simplifications around simcalls
[simgrid.git] / src / kernel / activity / SleepImpl.cpp
index f80692b..e20cdf7 100644 (file)
@@ -48,6 +48,7 @@ void SleepImpl::post()
   } else if (surf_action_->get_state() == resource::Action::State::FINISHED) {
     state_ = SIMIX_DONE;
   }
+  /* Answer all simcalls associated with the synchro */
   finish();
 }
 
@@ -57,13 +58,13 @@ void SleepImpl::finish()
     smx_simcall_t simcall = simcalls_.front();
     simcalls_.pop_front();
 
-    simcall->issuer->waiting_synchro = nullptr;
-    if (simcall->issuer->is_suspended()) {
+    simcall->issuer_->waiting_synchro = nullptr;
+    if (simcall->issuer_->is_suspended()) {
       XBT_DEBUG("Wait! This process is suspended and can't wake up now.");
-      simcall->issuer->suspended_ = false;
-      simcall->issuer->suspend(simcall->issuer);
+      simcall->issuer_->suspended_ = false;
+      simcall->issuer_->suspend(simcall->issuer_);
     } else {
-      simcall->issuer->simcall_answer();
+      simcall->issuer_->simcall_answer();
     }
   }