double task_comm_size = 1E6;
double timeout = 1;
- char mailbox[256];
+ const char * mailbox = "jupi";
xbt_ex_t ex;
- sprintf(mailbox, "jupi");
-
msg_task_t task = MSG_task_create("normal", task_comp_size, task_comm_size, NULL);
XBT_INFO("Sending task: \"%s\"", task->name);
MSG_task_send_with_timeout(task, mailbox, timeout);
msg_task_t task;
XBT_ATTRIB_UNUSED int res;
int id = -1;
- char mailbox[80];
+ const char * mailbox = "jupi";
double start, end;
- sprintf(mailbox, "jupi");
-
+
while (1) {
task = NULL;
res = MSG_task_receive(&(task), mailbox);