Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
delete the process at the end of the main method
[simgrid.git] / examples / cxx / explicitDestination / Slave.cxx
index fdfebb2180bab6ef0559c6013868d15f0a0d2aa4..6b4de500f811ccd7ffaa4527ab65cc4d720d9a71 100644 (file)
@@ -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