gras_hostdata_t *hd=(gras_hostdata_t *)MSG_host_get_data(MSG_host_self());
gras_procdata_t *pd=xbt_new(gras_procdata_t,1);
gras_trp_procdata_t trp_pd;
gras_hostdata_t *hd=(gras_hostdata_t *)MSG_host_get_data(MSG_host_self());
gras_procdata_t *pd=xbt_new(gras_procdata_t,1);
gras_trp_procdata_t trp_pd;
for (i=0; i<XBT_MAX_CHANNEL && hd->proc[i]; i++);
if (i == XBT_MAX_CHANNEL) {
RAISE2(system_error,
"GRAS: Can't add a new process on %s, because all channel are already in use. Please increase MAX CHANNEL (which is %d for now) and recompile GRAS\n.",
MSG_host_get_name(MSG_host_self()),XBT_MAX_CHANNEL);
}
for (i=0; i<XBT_MAX_CHANNEL && hd->proc[i]; i++);
if (i == XBT_MAX_CHANNEL) {
RAISE2(system_error,
"GRAS: Can't add a new process on %s, because all channel are already in use. Please increase MAX CHANNEL (which is %d for now) and recompile GRAS\n.",
MSG_host_get_name(MSG_host_self()),XBT_MAX_CHANNEL);
}
VERB2("Creating process '%s' (%d)",
MSG_process_get_name(MSG_process_self()),
VERB2("Creating process '%s' (%d)",
MSG_process_get_name(MSG_process_self()),
MSG_process_get_name(MSG_process_self()),MSG_process_self_PID());
if (xbt_dynar_length(msg_pd->msg_queue))
MSG_process_get_name(MSG_process_self()),MSG_process_self_PID());
if (xbt_dynar_length(msg_pd->msg_queue))