#include "xbt/fifo.h"
#include "simgrid/simdag.h"
#include "surf/surf.h"
-#include "xbt/swag.h"
#include "xbt/mallocator.h"
#include <stdbool.h>
xbt_dynar_t executable_task_set;
xbt_dynar_t completed_task_set;
- xbt_swag_t return_set;
+ xbt_dynar_t return_set;
int task_number;
} s_SD_global_t, *SD_global_t;
/* Task */
typedef struct SD_task {
- s_xbt_swag_hookup_t return_hookup;
e_SD_task_state_t state;
void *data; /* user data */
char *name;
- int kind;
+ e_SD_task_kind_t kind;
double amount;
double alpha; /* used by typed parallel tasks */
double remains;
} s_SD_dependency_t, *SD_dependency_t;
/* SimDag private functions */
-XBT_PUBLIC(xbt_swag_t) SD_simulate_swag(double how_long); /* could be public, but you need to see the internals of the SD_task_t to use it */
-
-
XBT_PRIVATE SD_workstation_t __SD_workstation_create(const char* name);
XBT_PRIVATE void __SD_workstation_destroy(void *workstation);
XBT_PRIVATE int __SD_workstation_is_busy(SD_workstation_t workstation);