Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change some function names
[simgrid.git] / src / simdag / private.h
index 06fe339..111a0b1 100644 (file)
 /* Global variables */
 
 typedef struct SD_global {
-  xbt_dict_t workstations; /* workstation list */
+  xbt_dict_t workstations; /* workstation dictionary */
   int workstation_count; /* number of workstations */
-  xbt_dict_t links; /* link list */
+  SD_workstation_t *workstation_list; /* array of workstations, created only if
+                                        necessary in SD_workstation_get_list */
+
+  xbt_dict_t links; /* links */
+  int link_count; /* number of links */
+  SD_link_t *link_list; /* array of links, created only if
+                          necessary in SD_link_get_list */
+
   int watch_point_reached; /* has a task just reached a watch point? */
   
   /* task state sets */
@@ -84,7 +91,6 @@ void __SD_workstation_destroy(void *workstation);
 
 void __SD_task_set_state(SD_task_t task, e_SD_task_state_t new_state);
 surf_action_t __SD_task_run(SD_task_t task);
-void __SD_task_remove_dependencies(SD_task_t task);
 
 /* Functions to test if the task is in a given state.
    These functions are faster than using SD_task_get_state() */