Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git] / src / s4u / s4u_mutex.cpp
index 9e0e5d5..5e63f24 100644 (file)
@@ -24,8 +24,7 @@ void Mutex::lock()
  */
 void Mutex::unlock()
 {
-  smx_actor_t self = SIMIX_process_self();
-  simgrid::simix::kernelImmediate([this, self] { return mutex_->unlock(self); });
+  simcall_mutex_unlock(mutex_);
 }
 
 /** @brief Acquire the mutex if it's free, and return false (without blocking) if not */