+ smx_req_t req = SIMIX_req_mine();
+
+ req->call = REQ_RDV_GET_HEAD;
+ req->rdv_get_head.rdv = rdv;
+
+ SIMIX_request_push(req->issuer);
+ return req->rdv_get_head.result;
+}
+
+void SIMIX_req_comm_send(smx_rdv_t rdv, double task_size, double rate,
+ void *src_buff, size_t src_buff_size,
+ int (*match_fun)(void *, void *), void *data,
+ double timeout)
+{
+ /* checking for infinite values */
+ xbt_assert(isfinite(task_size), "task_size is not finite!");
+ xbt_assert(isfinite(rate), "rate is not finite!");
+ xbt_assert(isfinite(timeout), "timeout is not finite!");
+
+ xbt_assert(rdv, "No rendez-vous point defined for send");
+
+ if (MC_IS_ENABLED) {
+ /* the model-checker wants two separate requests */
+ smx_action_t comm = SIMIX_req_comm_isend(rdv, task_size, rate,
+ src_buff, src_buff_size, match_fun, NULL, data, 0);
+ SIMIX_req_comm_wait(comm, timeout);
+ }
+ else {
+ smx_req_t req = SIMIX_req_mine();