*process = NULL;
smx_host_t host = SIMIX_host_get_by_name(hostname);
- XBT_DEBUG("Start process %s on host %s", name, hostname);
+ XBT_DEBUG("Start process %s on host '%s'", name, hostname);
if (!SIMIX_host_get_state(host)) {
XBT_WARN("Cannot launch process '%s' on failed host '%s'", name,
return NULL;
}
} else {
- return SIMIX_host_execute("suspend", process->smx_host, 0.0, 1.0);
+ SIMIX_simcall(SIMCALL_HOST_EXECUTE, PTR("suspend"), PTR(process->smx_host), DOUBLE(0.0), DOUBLE(1.0));
+ return process->simcall.host_execute.result;
}
}
SMX_THROW();
}
- /* Ignore some local variables from xbt/ex.c" */
- if(MC_is_active()){
- MC_ignore_stack("ctx", "SIMIX_process_yield");
- MC_ignore_stack("_throw_ctx", "SIMIX_process_yield");
- MC_ignore_stack("_log_ev", "SIMIX_process_yield");
- }
}
/* callback: context fetching */