action->comm.src_buff = src_buff;
action->comm.src_buff_size = src_buff_size;
action->comm.data = data;
-#ifdef HAVE_MC
- if (_surf_do_model_check){
+
+ if (MC_IS_ENABLED) {
action->state = SIMIX_RUNNING;
return action;
}
-#endif
+
SIMIX_comm_start(action);
return action;
}
action->comm.dst_buff = dst_buff;
action->comm.dst_buff_size = dst_buff_size;
-#ifdef HAVE_MC
- if (_surf_do_model_check){
+ if (MC_IS_ENABLED) {
action->state = SIMIX_RUNNING;
return action;
}
-#endif
SIMIX_comm_start(action);
return action;
xbt_fifo_push(action->request_list, req);
req->issuer->waiting_action = action;
-#ifdef HAVE_MC
- if (_surf_do_model_check){
+ if (MC_IS_ENABLED){
action->state = SIMIX_DONE;
SIMIX_comm_finish(action);
}
-#endif
/* If the action has already finish perform the error handling, */
/* otherwise set up a waiting timeout on the right side */
#ifdef HAVE_TRACING
TRACE_smx_action_communicate(action, action->comm.src_proc);
- TRACE_surf_action(action->comm.surf_comm, action->category);
#endif
/* If a link is failed, detect it immediately */