Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cosmetics.
authorArnaud Legrand <arnaud.legrand@imag.fr>
Wed, 25 Apr 2012 22:59:06 +0000 (00:59 +0200)
committerArnaud Legrand <arnaud.legrand@imag.fr>
Wed, 25 Apr 2012 23:13:39 +0000 (01:13 +0200)
examples/msg/masterslave/masterslave_kill.c
examples/msg/masterslave/masterslave_kill.tesh

index c65c06b..7baf1e6 100644 (file)
@@ -16,8 +16,9 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test,
 static int slave(int argc, char *argv[])
 {
   XBT_INFO("Hello!");
-  XBT_INFO("Suspend process");
+  XBT_INFO("Suspending myself");
   MSG_process_suspend(MSG_process_self());
+  XBT_INFO("OK, OK. Let's work");
   MSG_task_execute(MSG_task_create("toto", 1e9, 0, NULL));
   XBT_INFO("Bye!");
   return 0;
index 2db6f37..ff339cb 100644 (file)
@@ -5,8 +5,9 @@ p Testing a simple master/slave example application
 $ $SG_TEST_EXENV masterslave/masterslave_kill$EXEEXT ${srcdir:=.}/masterslave/platform_kill.xml ${srcdir:=.}/masterslave/deployment_masterslave_kill.xml
 > [alice:master:(1) 0.000000] [msg_test/INFO] Hello!
 > [bob:slave:(2) 0.000000] [msg_test/INFO] Hello!
-> [bob:slave:(2) 0.000000] [msg_test/INFO] Suspend process
+> [bob:slave:(2) 0.000000] [msg_test/INFO] Suspending myself
 > [alice:master:(1) 10.000000] [msg_test/INFO] Resume process
+> [bob:slave:(2) 10.000000] [msg_test/INFO] OK, OK. Let's work
 > [alice:master:(1) 10.000000] [msg_test/INFO] Kill process
 > [alice:master:(1) 10.000000] [msg_test/INFO] OK, goodbye now.
 > [10.000000] [msg_test/INFO] Simulation time 10
\ No newline at end of file