X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/aa62cff63b4f2ece14911c751ab1e3ff3999a16a..19aa33ec87e87e1ed8f4742cc4dd60aedb837892:/src/kernel/activity/MutexImpl.cpp diff --git a/src/kernel/activity/MutexImpl.cpp b/src/kernel/activity/MutexImpl.cpp index 5569f8af10..ee075b790d 100644 --- a/src/kernel/activity/MutexImpl.cpp +++ b/src/kernel/activity/MutexImpl.cpp @@ -21,7 +21,7 @@ void MutexImpl::lock(actor::ActorImpl* issuer) if (locked_) { /* FIXME: check if the host is active ? */ /* Somebody using the mutex, use a synchronization to get host failures */ - synchro = RawImplPtr(new RawImpl()); + 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;