X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/83ceec78c75b9ea471366e5bd5c1904f667c62b6..42ec07cc0c4fb24df86b22c97bfbeab2f0a21c8e:/src/kernel/activity/MutexImpl.cpp diff --git a/src/kernel/activity/MutexImpl.cpp b/src/kernel/activity/MutexImpl.cpp index c0f2a198da..2715bfb69a 100644 --- a/src/kernel/activity/MutexImpl.cpp +++ b/src/kernel/activity/MutexImpl.cpp @@ -34,8 +34,7 @@ void MutexImpl::lock(actor::ActorImpl* issuer) /* Somebody using the mutex, use a synchronization to get host failures */ synchro = RawImplPtr(new RawImpl([this, issuer]() { this->remove_sleeping_actor(*issuer); })); (*synchro).set_host(issuer->get_host()).start(); - synchro->simcalls_.push_back(&issuer->simcall_); - issuer->waiting_synchro_ = synchro; + synchro->register_simcall(&issuer->simcall_); sleeping_.push_back(*issuer); } else { /* mutex free */