Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
last changes of cpp wrappers examples
[simgrid.git] / examples / cxx / suspend / LazyGuy.cxx
index 7db90b7..0b390a9 100644 (file)
@@ -1,24 +1,25 @@
-#include "LazyGuy.hpp"\r
-#include <Host.hpp>\r
-\r
-#include <Msg.hpp>\r
-\r
-MSG_IMPLEMENT_DYNAMIC(LazyGuy, Process);\r
-\r
-int LazyGuy::main(int argc, char** argv)\r
-{\r
-       info("Hello !");\r
-       \r
-       info("Nobody's watching me ? Let's go to sleep.");\r
-       \r
-       Process::currentProcess().suspend();\r
-       \r
-       info("Uuuh ? Did somebody call me ?");\r
-       \r
-       info("Mmmh, goodbye now."); \r
-\r
-\r
-       delete this;\r
-\r
-       return 0;\r
-}
\ No newline at end of file
+#include "LazyGuy.hpp"
+#include <Host.hpp>
+
+#include <Msg.hpp>
+
+// Not needed : DreamMaster directly constructs the object
+// MSG_IMPLEMENT_DYNAMIC(LazyGuy, Process)
+
+int LazyGuy::main(int argc, char** argv)
+{
+       info("Hello !");
+       
+       info("Nobody's watching me ? Let's go to sleep.");
+       
+       Process::currentProcess().suspend();
+       
+       info("Uuuh ? Did somebody call me ?");
+       
+       info("Mmmh, goodbye now."); 
+
+       delete this;
+
+       return 0;
+}
+