1 #include "LazyGuy.hpp"
\r
7 MSG_IMPLEMENT_DYNAMIC(LazyGuy, Process);
\r
9 int LazyGuy::main(int argc, char** argv)
\r
11 cout <<"[" << getName() << ":" << getHost().getName() << "] " << "Hello !" << endl;
\r
13 cout <<"[" << getName() << ":" << getHost().getName() << "] " << "Nobody's watching me ? Let's go to sleep." << endl;
\r
15 Process::currentProcess().suspend();
\r
17 cout <<"[" << getName() << ":" << getHost().getName() << "] " << "Uuuh ? Did somebody call me ?" << endl;
\r
18 cout <<"[" << getName() << ":" << getHost().getName() << "] " << "Mmmh, goodbye now." << endl;
\r