XBT_DEBUG("Parallel execution action created: %p", simdata->compute);
} else {
simdata->compute = simcall_host_execute(task->name,
- p_simdata->m_host->smx_host,
+ p_simdata->m_host,
simdata->computation_amount,
simdata->priority);
/** \ingroup msg_task_usage
* \brief This function is called by a sender and permit to wait for each communication
*
-* \param comm a vector of communications
+* \param comm a vector of communication
+* \param nb_elem is the size of the comm vector
* \param timeout for each call of MSG_comm_wait
*/
-void MSG_comm_waitall(xbt_dynar_t comms, double timeout)
+void MSG_comm_waitall(msg_comm_t * comm, int nb_elem, double timeout)
{
- unsigned int cursor;
- msg_comm_t comm;
- xbt_dynar_foreach(comms, cursor, comm) {
- MSG_comm_wait(comm, timeout);
+ int i = 0;
+ for (i = 0; i < nb_elem; i++) {
+ MSG_comm_wait(comm[i], timeout);
}
}