X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/364eee0fc6ab77fddc5437ac273527bd27711724..eaa222acd330e2c3e2c517c5eaab82c8fcb8a4c1:/examples/s4u/async-waitany/s4u-async-waitany.cpp diff --git a/examples/s4u/async-waitany/s4u-async-waitany.cpp b/examples/s4u/async-waitany/s4u-async-waitany.cpp index 0f3bec8c42..eff5ae28eb 100644 --- a/examples/s4u/async-waitany/s4u-async-waitany.cpp +++ b/examples/s4u/async-waitany/s4u-async-waitany.cpp @@ -100,10 +100,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(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; }