while(i>0){
- m_task_t task = NULL;
+ msg_task_t task = NULL;
MSG_task_receive(&task, "coordinator");
const char *kind = MSG_task_get_name(task);
if (!strcmp(kind, "request")) {
char *req = MSG_task_get_data(task);
- m_task_t answer = MSG_task_create("received", 0, 1000, NULL);
+ msg_task_t answer = MSG_task_create("received", 0, 1000, NULL);
MSG_task_send(answer, req);
}else{
XBT_INFO("End of coordinator");
check();
// wait the answer
- m_task_t task = NULL;
+ msg_task_t task = NULL;
MSG_task_receive(&task, my_mailbox);
MSG_task_destroy(task);