- xbt_assert0(rdv, "No rendez-vous point defined for isend");
-
- req->call = REQ_COMM_IRECV;
- req->comm_irecv.rdv = rdv;
- req->comm_irecv.dst_buff = dst_buff;
- req->comm_irecv.dst_buff_size = dst_buff_size;
- req->comm_irecv.match_fun = match_fun;
- req->comm_irecv.data = data;
+ return simcall_BODY_comm_isend(rdv, task_size, rate, src_buff,
+ src_buff_size, match_fun,
+ clean_fun, data, detached);
+}
+/**
+ * \ingroup simix_comm_management
+ */
+void simcall_comm_recv(smx_rdv_t rdv, void *dst_buff, size_t * dst_buff_size,
+ int (*match_fun)(void *, void *, smx_action_t), void *data, double timeout)
+{
+ xbt_assert(isfinite(timeout), "timeout is not finite!");
+ xbt_assert(rdv, "No rendez-vous point defined for recv");
+
+ if (MC_is_active()) {
+ /* the model-checker wants two separate simcalls */
+ smx_action_t comm = simcall_comm_irecv(rdv, dst_buff, dst_buff_size,
+ match_fun, data);
+ simcall_comm_wait(comm, timeout);
+ }
+ else {
+ simcall_BODY_comm_recv(rdv, dst_buff, dst_buff_size,
+ match_fun, data, timeout);
+ }
+}
+/**
+ * \ingroup simix_comm_management
+ */
+smx_action_t simcall_comm_irecv(smx_rdv_t rdv, void *dst_buff, size_t *dst_buff_size,
+ int (*match_fun)(void *, void *, smx_action_t), void *data)
+{
+ xbt_assert(rdv, "No rendez-vous point defined for irecv");