X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/003b7aaee07e00a400955049410d4dc5165417c4..908e2eeefa763f12e23e221072f6e481249e986f:/src/simix/smx_network.cpp diff --git a/src/simix/smx_network.cpp b/src/simix/smx_network.cpp index 58b1ac1f1d..9b79a4f915 100644 --- a/src/simix/smx_network.cpp +++ b/src/simix/smx_network.cpp @@ -178,7 +178,7 @@ smx_synchro_t SIMIX_fifo_get_comm(xbt_fifo_t fifo, e_smx_comm_type_t type, xbt_fifo_remove_item(fifo, item); xbt_fifo_free_item(item); synchro->comm.refcount++; -#ifdef HAVE_MC +#if HAVE_MC synchro->comm.rdv_cpy = synchro->comm.rdv; #endif synchro->comm.rdv = NULL; @@ -707,7 +707,7 @@ static inline void SIMIX_comm_start(smx_synchro_t synchro) synchro->state = SIMIX_RUNNING; /* If a link is failed, detect it immediately */ - if (synchro->comm.surf_comm->getState() == SURF_ACTION_FAILED) { + if (synchro->comm.surf_comm->getState() == simgrid::surf::Action::State::failed) { XBT_DEBUG("Communication from '%s' to '%s' failed to start because of a link failure", sg_host_get_name(sender), sg_host_get_name(receiver)); synchro->state = SIMIX_LINK_FAILURE; @@ -875,19 +875,19 @@ void SIMIX_post_comm(smx_synchro_t synchro) { /* Update synchro state */ if (synchro->comm.src_timeout && - synchro->comm.src_timeout->getState() == SURF_ACTION_DONE) + synchro->comm.src_timeout->getState() == simgrid::surf::Action::State::done) synchro->state = SIMIX_SRC_TIMEOUT; else if (synchro->comm.dst_timeout && - synchro->comm.dst_timeout->getState() == SURF_ACTION_DONE) + synchro->comm.dst_timeout->getState() == simgrid::surf::Action::State::done) synchro->state = SIMIX_DST_TIMEOUT; else if (synchro->comm.src_timeout && - synchro->comm.src_timeout->getState() == SURF_ACTION_FAILED) + synchro->comm.src_timeout->getState() == simgrid::surf::Action::State::failed) synchro->state = SIMIX_SRC_HOST_FAILURE; else if (synchro->comm.dst_timeout && - synchro->comm.dst_timeout->getState() == SURF_ACTION_FAILED) + synchro->comm.dst_timeout->getState() == simgrid::surf::Action::State::failed) synchro->state = SIMIX_DST_HOST_FAILURE; else if (synchro->comm.surf_comm && - synchro->comm.surf_comm->getState() == SURF_ACTION_FAILED) { + synchro->comm.surf_comm->getState() == simgrid::surf::Action::State::failed) { XBT_DEBUG("Puta madre. Surf says that the link broke"); synchro->state = SIMIX_LINK_FAILURE; } else