X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d5b91248fa5fef0d3a11b9da3546cf9f1023192a..717875729557ca0e76702af5be742600842664a3:/src/simix/smx_network.c diff --git a/src/simix/smx_network.c b/src/simix/smx_network.c index e396a2df0f..5a1d6036f3 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -315,7 +315,7 @@ smx_action_t SIMIX_comm_irecv(smx_process_t dst_proc, smx_rdv_t rdv, return action; } -void SIMIX_pre_comm_wait(smx_req_t req) +void SIMIX_pre_comm_wait(smx_req_t req, int idx) { smx_action_t action = req->comm_wait.comm; double timeout = req->comm_wait.timeout; @@ -326,7 +326,7 @@ void SIMIX_pre_comm_wait(smx_req_t req) req->issuer->waiting_action = action; if (MC_IS_ENABLED){ - if(action->comm.src_proc && action->comm.dst_proc){ + if(idx == 0){ action->state = SIMIX_DONE; }else{ /* If we reached this point, the wait request must have a timeout */