X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/78c279dafeaf98e75a7db7ccb30c5179dd446353..09a0b55d933dfe1b6c5e77c6e6b55be1b4e6da66:/src/simix/smx_host.cpp diff --git a/src/simix/smx_host.cpp b/src/simix/smx_host.cpp index 79630cc59b..2fc7eb416c 100644 --- a/src/simix/smx_host.cpp +++ b/src/simix/smx_host.cpp @@ -16,8 +16,6 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_host, simix, "SIMIX hosts"); -static void SIMIX_execution_finish(simgrid::simix::Exec *exec); - /** * \brief Internal function to create a SIMIX host. * \param name name of the host to create @@ -438,32 +436,6 @@ void SIMIX_execution_finish(simgrid::simix::Exec *exec) exec->unref(); } - -void SIMIX_post_host_execute(simgrid::simix::Exec *exec) -{ - if (exec != nullptr && exec->host && /* FIMXE: handle resource failure for parallel tasks too */ - exec->host->isOff()) { - /* If the host running the synchro failed, notice it. This way, the asking - * process can be killed if it runs on that host itself */ - exec->state = SIMIX_FAILED; - } else if (exec->surf_exec->getState() == simgrid::surf::Action::State::failed) { - /* If the host running the synchro didn't fail, then the synchro was canceled */ - exec->state = SIMIX_CANCELED; - } else { - exec->state = SIMIX_DONE; - } - - if (exec != nullptr && exec->surf_exec) { - exec->surf_exec->unref(); - exec->surf_exec = NULL; - } - - /* If there are simcalls associated with the synchro, then answer them */ - if (xbt_fifo_size(exec->simcalls)) - SIMIX_execution_finish(exec); -} - - void SIMIX_set_category(smx_synchro_t synchro, const char *category) { if (synchro->state != SIMIX_RUNNING) return;