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
start snake_casing s4u::Engine
[simgrid.git]
/
examples
/
s4u
/
async-waitall
/
s4u-async-waitall.cpp
diff --git
a/examples/s4u/async-waitall/s4u-async-waitall.cpp
b/examples/s4u/async-waitall/s4u-async-waitall.cpp
index
98ca116
..
4d2c49c
100644
(file)
--- a/
examples/s4u/async-waitall/s4u-async-waitall.cpp
+++ b/
examples/s4u/async-waitall/s4u-async-waitall.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2010-201
7
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2010-201
8
. 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. */
/* 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. */
@@
-84,10
+84,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;
}
@@
-102,8
+102,8
@@
int main(int argc, char *argv[])
e.registerFunction<Sender>("sender");
e.registerFunction<Receiver>("receiver");
e.registerFunction<Sender>("sender");
e.registerFunction<Receiver>("receiver");
- e.load
P
latform(argv[1]);
- e.load
D
eployment(argv[2]);
+ e.load
_p
latform(argv[1]);
+ e.load
_d
eployment(argv[2]);
e.run();
return 0;
e.run();
return 0;