int CS_used = 0;
while (1) {
- 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")) {
} else {
if(strcmp(req, "2") == 0){
XBT_INFO("CS idle. Grant immediatly");
- m_task_t answer = MSG_task_create("grant", 0, 1000, NULL);
+ msg_task_t answer = MSG_task_create("grant", 0, 1000, NULL);
MSG_task_send(answer, req);
CS_used = 1;
}
}
- m_task_t grant = NULL;
+ msg_task_t grant = NULL;
MSG_task_receive(&grant, my_mailbox);
const char *kind = MSG_task_get_name(grant);