X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/efacb3792fdfe6bc849af2ce1a2e426c092601fb..4b29a552920278f287dca17fba2a33f7f30f4abc:/src/simix/smx_host_private.h diff --git a/src/simix/smx_host_private.h b/src/simix/smx_host_private.h index 261fe15b28..230060cdab 100644 --- a/src/simix/smx_host_private.h +++ b/src/simix/smx_host_private.h @@ -7,6 +7,7 @@ #ifndef _SIMIX_HOST_PRIVATE_H #define _SIMIX_HOST_PRIVATE_H +#include #include #include @@ -17,11 +18,11 @@ #include "src/kernel/activity/SynchroExec.hpp" -SG_BEGIN_DECL() - /** @brief Host datatype from SIMIX POV */ namespace simgrid { namespace simix { + class ProcessArg; + class Host { public: static simgrid::xbt::Extension EXTENSION_ID; @@ -30,26 +31,26 @@ namespace simgrid { virtual ~Host(); xbt_swag_t process_list; - xbt_dynar_t auto_restart_processes = nullptr; - xbt_dynar_t boot_processes = nullptr; + std::vector auto_restart_processes; + std::vector boot_processes; + + void turnOn(); }; } } typedef simgrid::simix::Host s_smx_host_priv_t; +SG_BEGIN_DECL() XBT_PRIVATE void _SIMIX_host_free_process_arg(void *); -XBT_PRIVATE void SIMIX_host_create(sg_host_t host); XBT_PRIVATE void SIMIX_host_add_auto_restart_process(sg_host_t host, const char *name, std::function code, void *data, - const char *hostname, double kill_time, xbt_dict_t properties, int auto_restart); -XBT_PRIVATE void SIMIX_host_restart_processes(sg_host_t host); XBT_PRIVATE void SIMIX_host_autorestart(sg_host_t host); XBT_PRIVATE smx_activity_t SIMIX_execution_start(smx_actor_t issuer, const char *name, double flops_amount, double priority, double bound);