Commit 9fef1818 authored by Millian Poquet's avatar Millian Poquet

[code] ipp.cpp assert+cosmetics

parent 727d210c
......@@ -29,7 +29,13 @@ void generic_send_message(const std::string & destination_mailbox,
if (detached)
MSG_task_dsend(task_to_send, destination_mailbox.c_str(), NULL);
else
MSG_task_send(task_to_send, destination_mailbox.c_str());
{
msg_error_t err = MSG_task_send(task_to_send, destination_mailbox.c_str());
xbt_assert(err == MSG_OK,
"Sending message from '%s' to '%s' of type '%s' with data %p FAILED!",
MSG_process_get_name(MSG_process_self()), destination_mailbox.c_str(),
ip_message_type_to_string(type).c_str(), data);
}
XBT_DEBUG("message from '%s' to '%s' of type '%s' with data %p done",
MSG_process_get_name(MSG_process_self()), destination_mailbox.c_str(),
......@@ -38,12 +44,12 @@ void generic_send_message(const std::string & destination_mailbox,
void send_message(const std::string & destination_mailbox, IPMessageType type, void * data)
{
generic_send_message(destination_mailbox, type, data, false);
generic_send_message(destination_mailbox, type, data, false);
}
void dsend_message(const std::string & destination_mailbox, IPMessageType type, void * data)
{
generic_send_message(destination_mailbox, type, data, true);
generic_send_message(destination_mailbox, type, data, true);
}
std::string ip_message_type_to_string(IPMessageType type)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment