Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
another dynar dies
[simgrid.git] / src / surf / sg_platf.cpp
index 5bfa669..dfcb753 100644 (file)
@@ -595,10 +595,8 @@ void sg_platf_new_process(sg_platf_process_cbarg_t process)
   arg->hostname = sg_host_get_name(host);
   arg->kill_time = kill_time;
   arg->properties = current_property_set;
   arg->hostname = sg_host_get_name(host);
   arg->kill_time = kill_time;
   arg->properties = current_property_set;
-  if (!sg_host_simix(host)->boot_processes)
-    sg_host_simix(host)->boot_processes = xbt_dynar_new(sizeof(smx_process_arg_t), _SIMIX_host_free_process_arg);
 
 
-  xbt_dynar_push_as(sg_host_simix(host)->boot_processes,smx_process_arg_t,arg);
+  sg_host_simix(host)->boot_processes.push_back(arg);
 
   if (start_time > SIMIX_get_clock()) {
 
 
   if (start_time > SIMIX_get_clock()) {