- xbt_dynar_push_as(comms, msg_comm_t,
- MSG_task_isend(MSG_task_create
- (mailbox, 0, comm_size, NULL), mailbox));
- }
- MSG_comm_waitall(comms, -1);
-
- msg_comm_t comm;
- unsigned int cursor;
- xbt_dynar_foreach(comms, cursor, comm) {
- MSG_comm_destroy(comm);
+ comms[i - 1] =
+ MSG_task_isend(MSG_task_create(mailbox, 0, comm_size, NULL), mailbox);