X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cedff8d970304fe22e5ab6d359c47160ec82fdb3..ed470be987e2acbdd4d16f46e21992a02b792371:/examples/msg/parallel_contexts/pcontexts2.c diff --git a/examples/msg/parallel_contexts/pcontexts2.c b/examples/msg/parallel_contexts/pcontexts2.c index 565ccd9002..fb469c9266 100644 --- a/examples/msg/parallel_contexts/pcontexts2.c +++ b/examples/msg/parallel_contexts/pcontexts2.c @@ -4,8 +4,8 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example"); -#define MAX_ITER 1 -#define WORK 0 +#define MAX_ITER 200000 +#define WORK 100000 int master(int argc, char **argv); int slave(int argc, char **argv); @@ -28,7 +28,7 @@ int master(int argc, char** argv) for(j=0; j < WORK; j++); MSG_task_send(task, mailbox); - INFO1("Task sent to %s", mailbox); + XBT_INFO("Task sent to %s", mailbox); } return 0; @@ -45,8 +45,9 @@ int slave(int argc, char **argv) for(i=0; i < MAX_ITER; i++){ MSG_task_receive(&task, mailbox); - INFO1("Task received to %s", mailbox); + XBT_INFO("Task received to %s", mailbox); MSG_task_destroy(task); + task=NULL; } return 0; @@ -60,7 +61,6 @@ MSG_error_t test_all(const char *platform_file, /* MSG_config("workstation/model","KCCFLN05"); */ { /* Simulation setting */ - MSG_set_channel_number(0); MSG_create_environment(platform_file); } { /* Application deployment */ @@ -70,7 +70,7 @@ MSG_error_t test_all(const char *platform_file, } res = MSG_main(); - INFO1("Simulation time %g", MSG_get_clock()); + XBT_INFO("Simulation time %g", MSG_get_clock()); return res; } /* end_of_test_all */