Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
delete the process at the end of the main method
[simgrid.git] / examples / cxx / comm_time / Slave.cxx
index 090fce3..4a3a78b 100644 (file)
@@ -39,7 +39,8 @@ 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
        \r
 }
\ No newline at end of file