Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'actor-yield' of github.com:Takishipp/simgrid into actor-yield
[simgrid.git] / examples / s4u / async-waitall / s4u-async-waitall.cpp
index 98ca116..7e611d7 100644 (file)
@@ -84,10 +84,10 @@ public:
   void operator()()
   {
     XBT_INFO("Wait for my first message");
-    for (bool done = false; not done;) {
+    for (bool cont = true; cont;) {
       std::string* received = static_cast<std::string*>(mbox->get());
       XBT_INFO("I got a '%s'.", received->c_str());
-      done = (*received == "finalize"); // If it's a finalize message, we're done
+      cont = (*received != "finalize"); // If it's a finalize message, we're done
       // Receiving the message was all we were supposed to do
       delete received;
     }