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
Remove xbt::args: use vector<string> instead
[simgrid.git]
/
examples
/
s4u
/
mutex
/
s4u_mutex.cpp
diff --git
a/examples/s4u/mutex/s4u_mutex.cpp
b/examples/s4u/mutex/s4u_mutex.cpp
index
f1c0eb7
..
2db0ebe
100644
(file)
--- a/
examples/s4u/mutex/s4u_mutex.cpp
+++ b/
examples/s4u/mutex/s4u_mutex.cpp
@@
-46,18
+46,13
@@
static void master()
{
int result = 0;
simgrid::s4u::Mutex mutex;
- simgrid::s4u::Actor workers[NB_ACTOR*2];
for (int i = 0; i < NB_ACTOR * 2 ; i++) {
// To create a worker use the static method simgrid::s4u::Actor.
if((i % 2) == 0 )
- workers[i] = simgrid::s4u::Actor("worker",
- simgrid::s4u::Host::by_name("Jupiter"),
- workerLockGuard, mutex, std::ref(result));
+ simgrid::s4u::Actor("worker", simgrid::s4u::Host::by_name("Jupiter"), workerLockGuard, mutex, std::ref(result));
else
- workers[i] = simgrid::s4u::Actor("worker",
- simgrid::s4u::Host::by_name("Tremblay"),
- worker, mutex, std::ref(result));
+ simgrid::s4u::Actor("worker", simgrid::s4u::Host::by_name("Tremblay"), worker, mutex, std::ref(result));
}
simgrid::s4u::this_actor::sleep(10);