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;
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 */