X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f78e8f50ae6dc29c91974b032a68f81be9524a64..a15797ea55151ddfdbae48147e74159efe01b411:/src/msg/msg_mailbox.cpp diff --git a/src/msg/msg_mailbox.cpp b/src/msg/msg_mailbox.cpp index 11ce7d86fc..1594821770 100644 --- a/src/msg/msg_mailbox.cpp +++ b/src/msg/msg_mailbox.cpp @@ -18,17 +18,17 @@ msg_mailbox_t MSG_mailbox_new(const char *alias) int MSG_mailbox_is_empty(msg_mailbox_t mailbox) { - return (NULL == simcall_mbox_get_head(mailbox)); + return (NULL == simcall_mbox_front(mailbox)); } -msg_task_t MSG_mailbox_get_head(msg_mailbox_t mailbox) +msg_task_t MSG_mailbox_front(msg_mailbox_t mailbox) { - smx_synchro_t comm = simcall_mbox_get_head(mailbox); + simgrid::simix::Comm* comm = static_cast(simcall_mbox_front(mailbox)); if (!comm) return NULL; - return (msg_task_t) simcall_comm_get_src_data(comm); + return (msg_task_t) comm->src_data; } msg_mailbox_t MSG_mailbox_get_by_alias(const char *alias)