XBT_PUBLIC(const char *) MSG_task_get_category (msg_task_t task);
/************************** Mailbox handling ************************************/
-/* @brief MSG_mailbox_new - create a new mailbox.
- * Creates a new mailbox identified by the key specified by the parameter alias and add it in the global dictionary.
- * @param alias The alias of the mailbox to create.
- * @return The newly created mailbox.
- */
-XBT_PUBLIC(msg_mailbox_t) MSG_mailbox_new(const char *alias);
-
/* @brief MSG_mailbox_get_by_alias - get a mailbox from its alias.
* Returns the mailbox associated with the key specified by the parameter alias. If the mailbox does not exists,
* the function creates it.
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_mailbox, msg, "Logging specific to MSG (mailbox)");
-msg_mailbox_t MSG_mailbox_new(const char *alias)
-{
- return simcall_mbox_create(alias);
-}
-
int MSG_mailbox_is_empty(msg_mailbox_t mailbox)
{
return (nullptr == simcall_mbox_front(mailbox));
msg_mailbox_t mailbox = simcall_mbox_get_by_name(alias);
if (!mailbox)
- mailbox = MSG_mailbox_new(alias);
+ mailbox = simcall_mbox_create(alias);
return mailbox;
}