- m_task_t task = MSG_task_create(to,0,parse_double(size),NULL);
-
- smx_rdv_t rdv = MSG_mailbox_get_by_alias(to);
-
- if(SIMIX_comm_has_recv_match(rdv, task_recv_matching, NULL)) {
- XBT_DEBUG("Switching back to MSG_task_send: %s", to);
- MSG_task_send(task, to);
- } else {
-
- msg_comm_t comm = MSG_task_isend_with_matching(task, to, /*matching madness*/NULL,task);
- xbt_dynar_push(globals->isends,&comm);
-
- if (task->simdata->message_size < 65536) {
- /* Close your eyes, it burns ! */
- comm->s_comm->comm.dst_proc = SIMIX_process_get_by_name(action[2]);
- comm->s_comm->comm.dst_buff = NULL;
- comm->s_comm->comm.dst_buff_size = NULL;
- comm->s_comm->comm.dst_data = NULL;
- comm->s_comm->state = SIMIX_READY;
- comm->s_comm->comm.refcount++;
- SIMIX_comm_start(comm->s_comm);
- }
+ msg_comm_t comm =
+ MSG_task_isend( MSG_task_create(to,0,parse_double(size),NULL), to);
+ xbt_dynar_push(globals->isends,&comm);