X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2b7b5860abcf6a2e17236f46fdcc27575df7a0bd..7571100729971aa089eb33af2f93a5177fc83757:/src/simix/smx_host.cpp diff --git a/src/simix/smx_host.cpp b/src/simix/smx_host.cpp index 111f9b3534..ad2f258867 100644 --- a/src/simix/smx_host.cpp +++ b/src/simix/smx_host.cpp @@ -44,7 +44,7 @@ void SIMIX_host_on(sg_host_t h) xbt_assert((host != NULL), "Invalid parameters"); - if (h->isOff()) { + if (h->is_off()) { simgrid::surf::Host* surf_host = h->extension(); surf_host->turnOn(); @@ -98,7 +98,7 @@ void SIMIX_host_off(sg_host_t h, smx_process_t issuer) xbt_assert((host != NULL), "Invalid parameters"); - if (h->isOn()) { + if (h->is_on()) { simgrid::surf::Host* surf_host = h->extension(); surf_host->turnOff(); @@ -480,7 +480,7 @@ void SIMIX_execution_finish(smx_synchro_t synchro) (int)synchro->state); } /* check if the host is down */ - if (simcall->issuer->host->isOff()) { + if (simcall->issuer->host->is_off()) { simcall->issuer->context->iwannadie = 1; } @@ -498,7 +498,7 @@ void SIMIX_post_host_execute(smx_synchro_t synchro) { if (synchro->type == SIMIX_SYNC_EXECUTE && /* FIMXE: handle resource failure * for parallel tasks too */ - synchro->execution.host->isOff()) { + synchro->execution.host->is_off()) { /* If the host running the synchro failed, notice it so that the asking * process can be killed if it runs on that host itself */ synchro->state = SIMIX_FAILED;