- trp_pd->active_socket = NULL;
- /* take a free channel for this process */
- /*
- trp_pd = (gras_trp_procdata_t)gras_libdata_by_name("gras_trp");
- for (i=0; i<XBT_MAX_CHANNEL && hd->proc[i]; i++);
- if (i == XBT_MAX_CHANNEL)
- THROW2(system_error,0,
- "Can't add a new process on %s, because all channels are already in use. Please increase MAX CHANNEL (which is %d for now) and recompile GRAS.",
- MSG_host_get_name(MSG_host_self()),XBT_MAX_CHANNEL);
-
- trp_pd->chan = i;
- hd->proc[ i ] = MSG_process_self_PID();
-*/
- /* regiter it to the ports structure */
- // pr.port = -1;
- //pr.tochan = i;
- //pr.meas = 0;
- //xbt_dynar_push(hd->ports,&pr);
-
- /* take a free meas channel for this process */
- /*
- for (i=0; i<XBT_MAX_CHANNEL && hd->proc[i]; i++);
- if (i == XBT_MAX_CHANNEL) {
- THROW2(system_error,0,
- "Can't add a new process on %s, because all channels are already in use. Please increase MAX CHANNEL (which is %d for now) and recompile GRAS.",
- MSG_host_get_name(MSG_host_self()),XBT_MAX_CHANNEL);
- }
- trp_pd->measChan = i;
-
- hd->proc[ i ] = MSG_process_self_PID();
-*/
- /* register it to the ports structure */
- //prmeas.port = -1;
- //prmeas.tochan = i;
- //prmeas.meas = 1;
- //xbt_dynar_push(hd->ports,&prmeas);