X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8639295f6bedeb3c9e1a60a1056925c4fe892fa4..5bc3597e1513c7b94497ae0ea819e5fa2e28058a:/src/s4u/s4u_mutex.cpp?ds=sidebyside diff --git a/src/s4u/s4u_mutex.cpp b/src/s4u/s4u_mutex.cpp index 9e0e5d5844..5e63f24149 100644 --- a/src/s4u/s4u_mutex.cpp +++ b/src/s4u/s4u_mutex.cpp @@ -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 */