X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2aad4701a92049c1d4545f5958c0822255d664f1..325e11b2f4756b1912369af33486b0b6513cf315:/src/gras_simix/Virtu/gras_simix_virtu_sg.h diff --git a/src/gras_simix/Virtu/gras_simix_virtu_sg.h b/src/gras_simix/Virtu/gras_simix_virtu_sg.h index 6db30cad7b..d2fb67d2d3 100644 --- a/src/gras_simix/Virtu/gras_simix_virtu_sg.h +++ b/src/gras_simix/Virtu/gras_simix_virtu_sg.h @@ -17,17 +17,16 @@ typedef struct { int port; /* list of ports used by a server socket */ -// int tochan; /* the channel it points to */ int meas; /* (boolean) the channel is for measurements or for messages */ + smx_process_t process; } gras_sg_portrec_t; /* Data for each host */ typedef struct { int refcount; -// int proc[XBT_MAX_CHANNEL]; /* PID of who's connected to each channel */ - /* If =0, then free */ smx_cond_t cond_port[65536]; + smx_mutex_t mutex_port[65536]; xbt_dynar_t ports; @@ -41,8 +40,7 @@ typedef struct { smx_process_t to_process; smx_host_t to_host; /* Who's on other side */ - gras_sg_portrec_t port; - //m_channel_t to_chan;/* Channel on which the other side is earing */ + } gras_trp_sg_sock_data_t;