SIMIX_display_process_status();
THROWF(arg_error, 0, "%s", msg);
}
SIMIX_display_process_status();
THROWF(arg_error, 0, "%s", msg);
}
- xbt_dynar_free(&auto_restart_processes);
- xbt_dynar_free(&boot_processes);
+ for (auto arg : auto_restart_processes)
+ delete arg;
+ auto_restart_processes.clear();
+ for (auto arg : boot_processes)
+ delete arg;
+ boot_processes.clear();
XBT_DEBUG("Booting Process %s(%s) right now", arg->name.c_str(), arg->hostname);
simix_global->create_process_function(arg->name.c_str(),
arg->code,
XBT_DEBUG("Booting Process %s(%s) right now", arg->name.c_str(), arg->hostname);
simix_global->create_process_function(arg->name.c_str(),
arg->code,
void* data, const char *hostname, double kill_time,
xbt_dict_t properties, int auto_restart)
{
void* data, const char *hostname, double kill_time,
xbt_dict_t properties, int auto_restart)
{
xbt_dict_set(watched_hosts_lib,sg_host_get_name(host),host,nullptr);
XBT_DEBUG("Push host %s to watched_hosts_lib because state == SURF_RESOURCE_OFF",sg_host_get_name(host));
}
xbt_dict_set(watched_hosts_lib,sg_host_get_name(host),host,nullptr);
XBT_DEBUG("Push host %s to watched_hosts_lib because state == SURF_RESOURCE_OFF",sg_host_get_name(host));
}
}
/** @brief Restart the list of processes that have been registered to the host */
void SIMIX_host_autorestart(sg_host_t host)
{
}
/** @brief Restart the list of processes that have been registered to the host */
void SIMIX_host_autorestart(sg_host_t host)
{
XBT_DEBUG("Restarting Process %s(%s) right now", arg->name.c_str(), arg->hostname);
simix_global->create_process_function(arg->name.c_str(), arg->code, nullptr, arg->hostname, arg->kill_time,
arg->properties, arg->auto_restart, nullptr);
}
XBT_DEBUG("Restarting Process %s(%s) right now", arg->name.c_str(), arg->hostname);
simix_global->create_process_function(arg->name.c_str(), arg->code, nullptr, arg->hostname, arg->kill_time,
arg->properties, arg->auto_restart, nullptr);
}
}
smx_activity_t simcall_HANDLER_execution_start(smx_simcall_t simcall, const char* name, double flops_amount,
}
smx_activity_t simcall_HANDLER_execution_start(smx_simcall_t simcall, const char* name, double flops_amount,