From: Fabien Chaix Date: Wed, 18 May 2022 14:26:28 +0000 (+0300) Subject: Fix the addition of detached comms to maestro X-Git-Tag: v3.32~233^2~3 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/7fc168cf0800508835142b5c41c0e60720d9e267 Fix the addition of detached comms to maestro --- diff --git a/src/kernel/activity/CommImpl.cpp b/src/kernel/activity/CommImpl.cpp index 143ebf80b6..87e8c5eeea 100644 --- a/src/kernel/activity/CommImpl.cpp +++ b/src/kernel/activity/CommImpl.cpp @@ -112,6 +112,7 @@ CommImpl& CommImpl::set_dst_buff(unsigned char* buff, size_t* size) CommImpl& CommImpl::detach() { detached_ = true; + EngineImpl::get_instance()->get_maestro()->activities_.emplace_back(this); return *this; } @@ -266,7 +267,6 @@ ActivityImplPtr CommImpl::isend(actor::CommIsendSimcall* observer) if (observer->is_detached()) { other_comm->detach(); other_comm->clean_fun = observer->get_clean_fun(); - EngineImpl::get_instance()->get_maestro()->activities_.emplace_back(other_comm); } else { other_comm->clean_fun = nullptr; observer->get_issuer()->activities_.emplace_back(other_comm);