Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
small simplification
[simgrid.git] / src / kernel / activity / SemaphoreImpl.cpp
index 66e9900..05dc8d7 100644 (file)
@@ -25,7 +25,7 @@ void SemaphoreImpl::acquire(actor::ActorImpl* issuer, double timeout)
     sleeping_.push_back(*issuer);
   } else {
     value_--;
-    SIMIX_simcall_answer(&issuer->simcall);
+    issuer->simcall_answer();
   }
 }
 void SemaphoreImpl::release()
@@ -36,7 +36,7 @@ void SemaphoreImpl::release()
     auto& actor = sleeping_.front();
     sleeping_.pop_front();
     actor.waiting_synchro = nullptr;
-    SIMIX_simcall_answer(&actor.simcall);
+    actor.simcall_answer();
   } else {
     value_++;
   }