Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
delete the process at the end of the main method
[simgrid.git] / examples / cxx / ping_pong / Receiver.cxx
index 67e67a6..fec2c36 100644 (file)
@@ -39,6 +39,8 @@ int Receiver::main(int argc, char** argv)
        cout <<"[" << getName() << ":" << getHost().getName() << "] " << " --- bw " << commSizeBw/communicationTime << " ----" << endl;\r
        \r
        cout <<"[" << getName() << ":" << getHost().getName() << "] " << "goodbye!" << endl;\r
+       \r
+       delete this;\r
 \r
        return 0;\r
 }
\ No newline at end of file