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
/
explicitDestination
/
Slave.cxx
diff --git
a/examples/cxx/explicitDestination/Slave.cxx
b/examples/cxx/explicitDestination/Slave.cxx
index
fdfebb2
..
6b4de50
100644
(file)
--- a/
examples/cxx/explicitDestination/Slave.cxx
+++ b/
examples/cxx/explicitDestination/Slave.cxx
@@
-39,6
+39,7
@@
int Slave::main(int argc, char** argv)
}
\r
\r
cout <<"[" << getName() << ":" << getHost().getName() << "] " << "Received Finalize. I'm done. See you!" << endl;
\r
-
\r
+
\r
+ delete this;
\r
return 0;
\r
}
\ No newline at end of file