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
delete the process at the end of the main method
[simgrid.git]
/
examples
/
cxx
/
basic
/
Slave.cxx
diff --git
a/examples/cxx/basic/Slave.cxx
b/examples/cxx/basic/Slave.cxx
index
775dd24
..
10be8fc
100644
(file)
--- a/
examples/cxx/basic/Slave.cxx
+++ b/
examples/cxx/basic/Slave.cxx
@@
-29,9
+29,13
@@
int Slave::main(int argc, char** argv)
t->execute();
\r
\r
cout <<"[" << getName() << ":" << getHost().getName() << "] " << "\"" << t->getName() << "\" done " << endl;
\r
t->execute();
\r
\r
cout <<"[" << getName() << ":" << getHost().getName() << "] " << "\"" << t->getName() << "\" done " << endl;
\r
+
\r
+ delete t;
\r
}
\r
\r
cout <<"[" << getName() << ":" << getHost().getName() << "] " << "Received Finalize. I'm done. See you!" << endl;
\r
}
\r
\r
cout <<"[" << getName() << ":" << getHost().getName() << "] " << "Received Finalize. I'm done. See you!" << endl;
\r
+
\r
+ delete this;
\r
\r
return 0;
\r
}
\ No newline at end of file
\r
return 0;
\r
}
\ No newline at end of file