Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[simix] Create a (fake) simcall for creating a process directly from a simgrid::simix...
[simgrid.git] / src / surf / sg_platf.cpp
index 8ccd61c..35cd58e 100644 (file)
@@ -608,7 +608,7 @@ void sg_platf_new_process(sg_platf_process_cbarg_t process)
                                             arg->data,
                                             arg->hostname,
                                             arg->kill_time,
-                                            arg->args.argc(), arg->args.to_argv(),
+                                            std::move(arg->args),
                                             arg->properties,
                                             arg->auto_restart,
                                             NULL);
@@ -625,13 +625,13 @@ void sg_platf_new_process(sg_platf_process_cbarg_t process)
                                             NULL,
                                             sg_host_get_name(host),
                                             kill_time,
-                                            arg->args.argc(), arg->args.to_argv(),
+                                            arg->args,
                                             current_property_set,
                                             auto_restart, NULL);
     else
       process_created = simcall_process_create(
           arg->name.c_str(), parse_code, NULL, sg_host_get_name(host), kill_time,
-          arg->args.argc(), arg->args.to_argv(), current_property_set,auto_restart);
+          arg->args, current_property_set,auto_restart);
 
     /* verify if process has been created (won't be the case if the host is currently dead, but that's fine) */
     if (!process_created) {