X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8639295f6bedeb3c9e1a60a1056925c4fe892fa4..5f9b6053027484ea411db0d1ee44ac258c9816f1:/src/s4u/s4u_mutex.cpp diff --git a/src/s4u/s4u_mutex.cpp b/src/s4u/s4u_mutex.cpp index 9e0e5d5844..c69ed49315 100644 --- a/src/s4u/s4u_mutex.cpp +++ b/src/s4u/s4u_mutex.cpp @@ -3,11 +3,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#include "src/msg/msg_private.h" -#include "src/simix/smx_synchro_private.hpp" -#include "xbt/log.h" - #include "simgrid/s4u/Mutex.hpp" +#include "src/kernel/activity/MutexImpl.hpp" namespace simgrid { namespace s4u { @@ -24,8 +21,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 */