X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e195a28b546de45d49c8ab08f18da1da136a2454..fd7651841882fc2795ff07da448a240dbdc90220:/src/simix/smx_synchro.cpp diff --git a/src/simix/smx_synchro.cpp b/src/simix/smx_synchro.cpp index 35b240f4de..2095a4c0b1 100644 --- a/src/simix/smx_synchro.cpp +++ b/src/simix/smx_synchro.cpp @@ -98,7 +98,7 @@ void SIMIX_synchro_finish(smx_activity_t synchro) namespace simgrid { namespace simix { -Mutex::Mutex() : mutex_(this) +MutexImpl::MutexImpl() : mutex_(this) { XBT_IN("(%p)", this); // Useful to initialize sleeping swag: @@ -107,14 +107,14 @@ Mutex::Mutex() : mutex_(this) XBT_OUT(); } -Mutex::~Mutex() +MutexImpl::~MutexImpl() { XBT_IN("(%p)", this); xbt_swag_free(this->sleeping); XBT_OUT(); } -void Mutex::lock(smx_actor_t issuer) +void MutexImpl::lock(smx_actor_t issuer) { XBT_IN("(%p; %p)", this, issuer); /* FIXME: check where to validate the arguments */ @@ -141,7 +141,7 @@ void Mutex::lock(smx_actor_t issuer) * \param issuer the process that tries to acquire the mutex * \return whether we managed to lock the mutex */ -bool Mutex::try_lock(smx_actor_t issuer) +bool MutexImpl::try_lock(smx_actor_t issuer) { XBT_IN("(%p, %p)", this, issuer); if (this->locked) { @@ -161,7 +161,7 @@ bool Mutex::try_lock(smx_actor_t issuer) * If the unlocker is not the owner of the mutex nothing happens. * If there are no process waiting, it sets the mutex as free. */ -void Mutex::unlock(smx_actor_t issuer) +void MutexImpl::unlock(smx_actor_t issuer) { XBT_IN("(%p, %p)", this, issuer); if (not this->locked) @@ -207,7 +207,7 @@ void SIMIX_mutex_unref(smx_mutex_t mutex) smx_mutex_t simcall_HANDLER_mutex_init(smx_simcall_t simcall) { - return new simgrid::simix::Mutex(); + return new simgrid::simix::MutexImpl(); } // Simcall handlers: