Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics
authorSUTER Frederic <frederic.suter@cc.in2p3.fr>
Mon, 10 Jan 2022 06:53:26 +0000 (07:53 +0100)
committerSUTER Frederic <frederic.suter@cc.in2p3.fr>
Mon, 10 Jan 2022 12:44:37 +0000 (13:44 +0100)
examples/cpp/comm-ready/s4u-comm-ready.cpp
examples/cpp/dag-scheduling/s4u-dag-scheduling.cpp

index de486d8..edb9575 100644 (file)
@@ -42,7 +42,7 @@ static void peer(int my_id, int messages_count, size_t payload_size, int peers_c
         sg4::Mailbox* mbox  = sg4::Mailbox::by_name(std::string("peer-") + std::to_string(peer_id));
         std::string message = std::string("Message ") + std::to_string(i) + " from peer " + std::to_string(my_id);
         auto* payload       = new std::string(message); // copy the data we send:
-        // 'msgName' is not a stable storage location
+        // 'message' is not a stable storage location
         XBT_INFO("Send '%s' to '%s'", message.c_str(), mbox->get_cname());
         /* Create a communication representing the ongoing communication */
         pending_comms.push_back(mbox->put_async(payload, payload_size));
index 60e645a..c0502b7 100644 (file)
@@ -261,9 +261,5 @@ int main(int argc, char** argv)
 
   XBT_INFO("Simulation Time: %f", simgrid_get_clock());
 
-  for (auto h : hosts) {
-    h->set_data(nullptr);
-  }
-
   return 0;
 }