-// XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simu);
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(comm, simu,
- "Messages from asynchronous pipes");
+XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(comm);
std::string message::to_string()
{
static const char* str[] = { "INFO", "CREDIT", "LOAD",
"CTRL_CLOSE", "DATA_CLOSE" };
std::ostringstream oss;
std::string message::to_string()
{
static const char* str[] = { "INFO", "CREDIT", "LOAD",
"CTRL_CLOSE", "DATA_CLOSE" };
std::ostringstream oss;
m_task_t task = MSG_task_create("message", 0.0, msg_size, msg);
msg_comm_t comm = MSG_task_isend(task, dest);
sent_comm.push_back(comm);
m_task_t task = MSG_task_create("message", 0.0, msg_size, msg);
msg_comm_t comm = MSG_task_isend(task, dest);
sent_comm.push_back(comm);
sent_comm.remove_if(comm_test_n_destroy);
if (wait && !sent_comm.empty()) {
xbt_dynar_t comms = xbt_dynar_new(sizeof(msg_comm_t), NULL);
while (!sent_comm.empty()) {
std::for_each(sent_comm.begin(), sent_comm.end(),
sent_comm.remove_if(comm_test_n_destroy);
if (wait && !sent_comm.empty()) {
xbt_dynar_t comms = xbt_dynar_new(sizeof(msg_comm_t), NULL);
while (!sent_comm.empty()) {
std::for_each(sent_comm.begin(), sent_comm.end(),
- std::tr1::bind(comm_push_in_dynar,
- comms, std::tr1::placeholders::_1));
+ bind(xbt_dynar_push,
+ comms, bind(misc::address<msg_comm_t>(), _1)));