Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright headers.
[simgrid.git] / examples / s4u / async-wait / s4u-async-wait.cpp
index d712f92..f675ce0 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2017. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2010-2018. 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. */
@@ -88,10 +88,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;
     }