Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Completely remove detached comms when they are finished.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 9 Sep 2022 11:09:39 +0000 (13:09 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 9 Sep 2022 11:09:39 +0000 (13:09 +0200)
src/kernel/activity/CommImpl.cpp

index e027255..ed8a0f4 100644 (file)
@@ -542,6 +542,9 @@ void CommImpl::finish()
   if (get_state() == State::DONE)
     copy_data();
 
+  if (detached_)
+    EngineImpl::get_instance()->get_maestro()->activities_.remove(this);
+
   while (not simcalls_.empty()) {
     actor::Simcall* simcall = simcalls_.front();
     simcalls_.pop_front();