Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reorder loop processing in CommWait ex(C) comp
[simgrid.git] / src / s4u / s4u_Comm.cpp
index f7bfc9e1b10c94510114db76ee096d6cc00871f3..ac97c56ce3bd022ae4175bb61d430d94b5c3cefd 100644 (file)
@@ -58,8 +58,6 @@ Comm::~Comm()
       XBT_INFO("pimpl_ is null");
     xbt_backtrace_display_current();
   }
-  if (pimpl_ != nullptr)
-    pimpl_->set_iface(nullptr);
 }
 
 void Comm::send(kernel::actor::ActorImpl* sender, const Mailbox* mbox, double task_size, double rate, void* src_buff,
@@ -470,7 +468,7 @@ ssize_t Comm::wait_any_for(const std::vector<CommPtr>& comms, double timeout)
 void Comm::wait_all(const std::vector<CommPtr>& comms)
 {
   // TODO: this should be a simcall or something
-  for (auto& comm : comms)
+  for (const auto& comm : comms)
     comm->wait();
 }