]> AND Public Git Repository - simgrid.git/blobdiff - examples/cpp/comm-waituntil/s4u-comm-waituntil.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix more sonar things
[simgrid.git] / examples / cpp / comm-waituntil / s4u-comm-waituntil.cpp
index 70f427713f9e5e6fc07f94ce130d63d71393f5dd..a24ca3ab671c8e940ed8aad416f54a6b236a1ddc 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2010-2022. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -38,8 +38,8 @@ static void sender(int messages_count, size_t payload_size)
 
   /* Start the finalize signal to the receiver*/
   auto* payload     = new std::string("finalize"); // Make a copy of the data we will send
-  sg4::CommPtr comm = mbox->put_async(payload, 0);
-  pending_comms.push_back(comm);
+  sg4::CommPtr final_comm = mbox->put_async(payload, 0);
+  pending_comms.push_back(final_comm);
   XBT_INFO("Send 'finalize' to 'receiver-0'");
 
   XBT_INFO("Done dispatching all messages");