A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add an example for waitany fct.
[simgrid.git]
/
src
/
msg
/
gos.c
diff --git
a/src/msg/gos.c
b/src/msg/gos.c
index
b7a99af
..
a1266eb
100644
(file)
--- 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);
}
/* 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);
}
int MSG_comm_test(msg_comm_t comm) {
return SIMIX_network_test(comm);
}
@@
-531,6
+532,15
@@
void MSG_comm_waitall(msg_comm_t *comm,int nb_elem, double timeout) {
}
}
}
}
+int MSG_comm_waitany(xbt_dynar_t comms) {
+ return SIMIX_network_waitany(comms);
+}
+
+m_task_t MSG_comm_get_task(msg_comm_t comm) {
+ xbt_assert0(comm, "Invalid parameters");
+ return (m_task_t) SIMIX_communication_get_src_buf(comm);
+}
+
/** \ingroup msg_gos_functions
* \brief Put a task on a channel of an host and waits for the end of the
* transmission.
/** \ingroup msg_gos_functions
* \brief Put a task on a channel of an host and waits for the end of the
* transmission.