parse_argv[(parse_argc) - 1] = xbt_strdup(A_surfxml_process_function);
surf_parse_get_double(&start_time, A_surfxml_process_start_time);
surf_parse_get_double(&kill_time, A_surfxml_process_kill_time);
-
- current_property_set = xbt_dict_new();
}
static void parse_argument(void)
arg->kill_time = kill_time;
arg->properties = current_property_set;
- DEBUG3("Process %s(%s) will be started at time %f", arg->name,
+ XBT_DEBUG("Process %s(%s) will be started at time %f", arg->name,
arg->hostname, start_time);
SIMIX_timer_set(start_time, &SIMIX_process_create_from_wrapper, arg);
} else { // start_time <= SIMIX_get_clock()
- DEBUG2("Starting Process %s(%s) right now", parse_argv[0], parse_host);
+ XBT_DEBUG("Starting Process %s(%s) right now", parse_argv[0], parse_host);
if (simix_global->create_process_function)
(*simix_global->create_process_function) (&process,
return;
}
if (kill_time > SIMIX_get_clock()) {
- if (simix_global->kill_process_function)
+ if (simix_global->kill_process_function) {
SIMIX_timer_set(start_time, simix_global->kill_process_function, process);
- else
- SIMIX_timer_set(start_time, &SIMIX_process_kill, process);
+ }
}
xbt_free(parse_host);
}
+ current_property_set = NULL;
}
/**
parse_argv[(parse_argc) - 1] = xbt_strdup(process_function);
start_time = process_start_time;
kill_time = process_kill_time;
- current_property_set = xbt_dict_new();
/* add arguments */
xbt_dynar_foreach(arguments, i, arg) {