Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update SD_init() and SD_exit()
[simgrid.git] / src / simdag / private.h
index 111a0b1..9fef23b 100644 (file)
@@ -7,7 +7,8 @@
 #include "simdag/datatypes.h"
 #include "surf/surf.h"
 
-#define SD_CHECK_INIT_DONE() xbt_assert0(sd_global != NULL, "Call SD_init() first")
+#define SD_INITIALISED() (sd_global != NULL)
+#define SD_CHECK_INIT_DONE() xbt_assert0(SD_INITIALISED(), "Call SD_init() first")
 
 /* Global variables */
 
@@ -55,6 +56,9 @@ typedef struct SD_task {
   void *data; /* user data */
   char *name;
   double amount;
+  double remains;
+  double start_time;
+  double finish_time;
   surf_action_t surf_action;
   unsigned short watch_points;
   int state_changed; /* used only by SD_simulate, to make sure we put