A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cosmetics: rename a function, deprecate old name
[simgrid.git]
/
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
0f3bec8
..
eff5ae2
100644
(file)
--- 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");
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());
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;
}
// Receiving the message was all we were supposed to do
delete received;
}