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
Update copyright headers.
[simgrid.git]
/
teshsuite
/
s4u
/
concurrent_rw
/
concurrent_rw.cpp
diff --git
a/teshsuite/s4u/concurrent_rw/concurrent_rw.cpp
b/teshsuite/s4u/concurrent_rw/concurrent_rw.cpp
index
0c1db3c
..
b53d921
100644
(file)
--- a/
teshsuite/s4u/concurrent_rw/concurrent_rw.cpp
+++ b/
teshsuite/s4u/concurrent_rw/concurrent_rw.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2008-201
7
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2008-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. */
@@
-29,15
+29,14
@@
static void host()
int main(int argc, char** argv)
{
int main(int argc, char** argv)
{
- simgrid::s4u::Engine
* e = new simgrid::s4u::Engin
e(&argc, argv);
- e
->
loadPlatform(argv[1]);
+ simgrid::s4u::Engine
e(&argc, argv);
+ e
.
loadPlatform(argv[1]);
for (int i = 0; i < 5; i++)
for (int i = 0; i < 5; i++)
- simgrid::s4u::Actor::create
Actor
("host", simgrid::s4u::Host::by_name("bob"), host);
+ simgrid::s4u::Actor::create("host", simgrid::s4u::Host::by_name("bob"), host);
- e
->
run();
- XBT_INFO("Simulation time %g", e
->
getClock());
+ e
.
run();
+ XBT_INFO("Simulation time %g", e
.
getClock());
- delete e;
return 0;
}
return 0;
}