X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ae11ab3b4a647d982dc92a2c7dd10fb3cb853916..c6eefaa5a3198ebff98651ac72501367e4195ded:/src/msg/gos.c diff --git a/src/msg/gos.c b/src/msg/gos.c index 6ad4005acc..a1266eb648 100644 --- a/src/msg/gos.c +++ b/src/msg/gos.c @@ -466,6 +466,7 @@ msg_comm_t MSG_task_irecv(m_task_t * task, const char *alias) { /* Try to receive it by calling SIMIX network layer */ return SIMIX_network_irecv(rdv, task, &size); } + int MSG_comm_test(msg_comm_t comm) { return SIMIX_network_test(comm); } @@ -514,6 +515,32 @@ MSG_error_t MSG_comm_wait(msg_comm_t comm, double timeout) { return res; } + +/* This function is called by a sender and permit to wait for each communication + * + * Param: + * - msg_comm_t *comm a vector of communication + * - int nb_elem is th esize of the comm vector + * - timeout for each call of MSG_comm_wait + */ + +void MSG_comm_waitall(msg_comm_t *comm,int nb_elem, double timeout) { + int i=0; + for(i=0; i