XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(comm);
#include "misc.h"
+#include "options.h"
#include "messages.h"
return oss.str();
}
+double message::get_size() const
+{
+ // arbitrary: 8 for type, and 8 for amount
+ double size = 16;
+ if (type == LOAD)
+ size += opt::comm_cost(amount);
+ return size;
+}
+
void message_queue::push(m_task_t task)
{
mutex.acquire();