X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bded17ddf45f0643fd7f137d0acecdee853ea7d1..9c1bc911d15a70898c862abf50907806010609a2:/src/simix/smx_deployment.cpp diff --git a/src/simix/smx_deployment.cpp b/src/simix/smx_deployment.cpp index f32f5fff20..d4825df8e1 100644 --- a/src/simix/smx_deployment.cpp +++ b/src/simix/smx_deployment.cpp @@ -60,11 +60,11 @@ simgrid::simix::ActorCodeFactory& SIMIX_get_actor_code_factory(const std::string /** @brief Bypass the parser, get arguments, and set function to each process */ void SIMIX_process_set_function(const char* process_host, const char* process_function, xbt_dynar_t arguments, - double process_start_time, double process_kill_time) + double process_start_time, double process_kill_time) // XBT_ATTRIB_DEPRECATED_v329 { simgrid::kernel::routing::ActorCreationArgs actor; - sg_host_t host = sg_host_by_name(process_host); + const simgrid::s4u::Host* host = sg_host_by_name(process_host); if (not host) throw std::invalid_argument(simgrid::xbt::string_printf("Host '%s' unknown", process_host)); actor.host = process_host; @@ -77,14 +77,14 @@ void SIMIX_process_set_function(const char* process_host, const char* process_fu } // Check we know how to handle this function name: - simgrid::simix::ActorCodeFactory& parse_code = SIMIX_get_actor_code_factory(process_function); + const simgrid::simix::ActorCodeFactory& parse_code = SIMIX_get_actor_code_factory(process_function); xbt_assert(parse_code, "Function '%s' unknown", process_function); - actor.function = process_function; - actor.host = process_host; - actor.kill_time = process_kill_time; - actor.start_time = process_start_time; - actor.on_failure = simgrid::kernel::routing::ActorOnFailure::DIE; + actor.function = process_function; + actor.host = process_host; + actor.kill_time = process_kill_time; + actor.start_time = process_start_time; + actor.restart_on_failure = false; sg_platf_new_actor(&actor); }