Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
bug fix: cleaning should be done before returning...
[simgrid.git] / src / gras / Virtu / virtu_sg.h
index 4df4e09aeb3abb368a0cb328f7668391201379a8..8bbc96826c9cf0c91817b0d8f2e5622f61192502 100644 (file)
 #define VIRTU_SG_H
 
 #include "gras/Virtu/virtu_private.h"
+#include "xbt/dynar.h"
 #include "msg/msg.h" /* SimGrid header */
 
-#define XBT_MAX_CHANNEL 10
-
 typedef struct {
   int port;  /* list of ports used by a server socket */
   int tochan; /* the channel it points to */
@@ -23,6 +22,7 @@ typedef struct {
 
 /* 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 */