Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
firing on_this_completion breaks a lot of tests and I don't see how to fix this ...
authorFred Suter <suterf@ornl.gov>
Wed, 31 May 2023 21:38:07 +0000 (17:38 -0400)
committerFred Suter <suterf@ornl.gov>
Wed, 31 May 2023 21:38:07 +0000 (17:38 -0400)
src/kernel/activity/CommImpl.cpp

index ad1c7fe..dbf9510 100644 (file)
@@ -470,9 +470,9 @@ void CommImpl::finish()
   XBT_DEBUG("CommImpl::finish() comm %p, state %s, src_proc %p, dst_proc %p, detached: %d", this, get_state_str(),
             src_actor_.get(), dst_actor_.get(), detached_);
 
-  auto* piface = static_cast<const s4u::Comm*>(this->get_iface());
-  s4u::Comm::on_completion(*piface);
-  piface->on_this_completion(*piface);
+  const s4u::Comm& piface = static_cast<const s4u::Comm&>(*this->get_iface());
+  s4u::Comm::on_completion(piface);
+  //piface.on_this_completion(piface);
 
   /* Update synchro state */
   if (src_timeout_ && src_timeout_->get_state() == resource::Action::State::FINISHED)