X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dfd4577a334ccffefde41992148e11edf2b34a25..401ba15e5e4da730ac3239424534c28fa51eda02:/src/simix/smx_host_private.h diff --git a/src/simix/smx_host_private.h b/src/simix/smx_host_private.h index 312e5bd76b..bac4f9f3c4 100644 --- a/src/simix/smx_host_private.h +++ b/src/simix/smx_host_private.h @@ -7,11 +7,15 @@ #ifndef _SIMIX_HOST_PRIVATE_H #define _SIMIX_HOST_PRIVATE_H +#include + #include #include "simgrid/simix.h" #include "popping_private.h" +#include "src/simix/SynchroExec.hpp" + SG_BEGIN_DECL() /** @brief Host datatype from SIMIX POV */ @@ -27,11 +31,10 @@ XBT_PRIVATE void SIMIX_host_destroy(void *host); XBT_PRIVATE void SIMIX_host_add_auto_restart_process(sg_host_t host, const char *name, - xbt_main_func_t code, + std::function code, void *data, const char *hostname, double kill_time, - int argc, char **argv, xbt_dict_t properties, int auto_restart); @@ -43,16 +46,13 @@ XBT_PRIVATE smx_synchro_t SIMIX_execution_parallel_start(const char *name, int host_nb, sg_host_t *host_list, double *flops_amount, double *bytes_amount, double amount, double rate); -XBT_PRIVATE void SIMIX_execution_destroy(smx_synchro_t synchro); XBT_PRIVATE void SIMIX_execution_cancel(smx_synchro_t synchro); XBT_PRIVATE void SIMIX_execution_set_priority(smx_synchro_t synchro, double priority); XBT_PRIVATE void SIMIX_execution_set_bound(smx_synchro_t synchro, double bound); XBT_PRIVATE void SIMIX_execution_set_affinity(smx_synchro_t synchro, sg_host_t host, unsigned long mask); -XBT_PRIVATE void SIMIX_execution_suspend(smx_synchro_t synchro); -XBT_PRIVATE void SIMIX_execution_resume(smx_synchro_t synchro); +XBT_PRIVATE void SIMIX_execution_finish(simgrid::simix::Exec *exec); -XBT_PRIVATE void SIMIX_post_host_execute(smx_synchro_t synchro); XBT_PRIVATE void SIMIX_set_category(smx_synchro_t synchro, const char *category); /* vm related stuff */