]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/activity/MutexImpl.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use the "_t" and "_v" version of type traits.
[simgrid.git] / src / kernel / activity / MutexImpl.cpp
index 1c9235b95cd133229325140a44b27c33dcb669a5..43a511b9d30901a649a1d16e2d4f2b9fdb0ca6f0 100644 (file)
@@ -25,15 +25,11 @@ void MutexAcquisitionImpl::wait_for(actor::ActorImpl* issuer, double timeout)
   this->register_simcall(&issuer_->simcall_); // Block on that acquisition
 
   if (mutex_->get_owner() == issuer_) { // I'm the owner
-    post();
+    finish();
   } else {
     // Already in the queue
   }
 }
-void MutexAcquisitionImpl::post()
-{
-  finish();
-}
 
 void MutexAcquisitionImpl::finish()
 {
@@ -99,7 +95,7 @@ void MutexImpl::unlock(actor::ActorImpl* issuer)
 
     owner_ = acq->get_issuer();
     if (acq == owner_->waiting_synchro_)
-      acq->post();
+      acq->finish();
     // else, the issuer is not blocked on this acquisition so no need to release it
 
   } else {