Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Declare functions "const" in examples/ and teshsuite/.
[simgrid.git] / examples / s4u / async-waitany / s4u-async-waitany.cpp
index 293deec..d4ef016 100644 (file)
@@ -25,9 +25,9 @@
 XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_async_waitall, "Messages specific for this s4u example");
 
 class Sender {
-  long messages_count;  /* - number of tasks */
+  long messages_count;  /* - number of messages */
   long receivers_count; /* - number of receivers */
-  double msg_size;      /* - communication cost in bytes */
+  double msg_size;      /* - message size in bytes */
 
 public:
   explicit Sender(std::vector<std::string> args)
@@ -37,7 +37,7 @@ public:
     msg_size        = std::stod(args[2]);
     receivers_count = std::stol(args[3]);
   }
-  void operator()()
+  void operator()() const
   {
     /* Vector in which we store all ongoing communications */
     std::vector<simgrid::s4u::CommPtr> pending_comms;