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);
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;
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;
/* MSG_config("workstation/model","KCCFLN05"); */
{ /* Simulation setting */
- MSG_set_channel_number(0);
MSG_create_environment(platform_file);
}
{ /* Application deployment */
}
res = MSG_main();
- INFO1("Simulation time %g", MSG_get_clock());
+ XBT_INFO("Simulation time %g", MSG_get_clock());
return res;
} /* end_of_test_all */