- if (surfAction_)
- surfAction_->suspend();
- /* in the other case, the action will be suspended on creation, in SIMIX_comm_start() */
+ if (surf_action_)
+ surf_action_->suspend();
+ /* if not created yet, the action will be suspended on creation, in SIMIX_comm_start() */
/* in the other case, the synchro were not really suspended yet, see SIMIX_comm_suspend() and SIMIX_comm_start() */
}
/* in the other case, the synchro were not really suspended yet, see SIMIX_comm_suspend() and SIMIX_comm_start() */
}
if (state_ == SIMIX_WAITING) {
mbox->remove(this);
state_ = SIMIX_CANCELED;
} else if (not MC_is_active() /* when running the MC there are no surf actions */
&& not MC_record_replay_is_active() && (state_ == SIMIX_READY || state_ == SIMIX_RUNNING)) {
if (state_ == SIMIX_WAITING) {
mbox->remove(this);
state_ = SIMIX_CANCELED;
} else if (not MC_is_active() /* when running the MC there are no surf actions */
&& not MC_record_replay_is_active() && (state_ == SIMIX_READY || state_ == SIMIX_RUNNING)) {
state_ = SIMIX_LINK_FAILURE;
} else
state_ = SIMIX_DONE;
XBT_DEBUG("SIMIX_post_comm: comm %p, state %d, src_proc %p, dst_proc %p, detached: %d", this, (int)state_,
state_ = SIMIX_LINK_FAILURE;
} else
state_ = SIMIX_DONE;
XBT_DEBUG("SIMIX_post_comm: comm %p, state %d, src_proc %p, dst_proc %p, detached: %d", this, (int)state_,