Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
free the callback list on gras_process_exit
[simgrid.git] / src / gras / Virtu / virtu_interface.h
index f4fd3f9..74ed9f7 100644 (file)
  * Data for each process 
  */
 typedef struct {
-  /* queue of messages which where received but not wanted in msgWait, and therefore
-     temporarly queued until the next msgHandle */
+  /*queue of msgs storing the ones got while msg_wait'ing for something else */
   gras_dynar_t *msg_queue; /* elm type: gras_msg_t */
 
   /* registered callbacks for each message */
   gras_dynar_t *cbl_list; /* elm type: gras_cblist_t */
    
-
-  /* The channel we are listening to in SG for formated messages */
-  int chan;
-  /* The channel we are listening to in SG for raw send/recv */
-  int rawChan; 
+  /* SG only elements. In RL, they are part of the OS ;) */
+  int chan;    /* Formated messages channel */
+  int rawChan; /* Unformated echange channel */
+  gras_dynar_t *sockets; /* all sockets known to this process */
 
   /* globals of the process */
   void *userdata;               
-} gras_process_data_t;
+} gras_procdata_t;
 
+/* Access */
+gras_dynar_t * gras_socketset_get(void);
 
+/* FIXME: mv to _private? */
+gras_procdata_t *gras_procdata_get(void);
+gras_error_t gras_procdata_init(void);
+void gras_procdata_exit(void);
 #endif  /* GRAS_VIRTU_INTERFACE_H */