+/**
+ * \ingroup simix_comm_management
+ */
+smx_action_t simcall_comm_isend(smx_rdv_t rdv, double task_size, double rate,
+ void *src_buff, size_t src_buff_size,
+ int (*match_fun)(void *, void *, smx_action_t),
+ void (*clean_fun)(void *),
+ void *data,
+ int detached)
+{
+ /* checking for infinite values */
+ xbt_assert(isfinite(task_size), "task_size is not finite!");
+ xbt_assert(isfinite(rate), "rate is not finite!");
+
+ xbt_assert(rdv, "No rendez-vous point defined for isend");
+
+ 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 = NULL; /* MC needs the comm to be set to NULL during the simcall */
+ comm = simcall_comm_irecv(rdv, dst_buff, dst_buff_size,
+ match_fun, data);
+ simcall_comm_wait(comm, timeout);
+ comm = NULL;
+ }
+ 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)