~ubuntu-branches/ubuntu/raring/simgrid/raring

« back to all changes in this revision

Viewing changes to src/simdag/private.h

  • Committer: Package Import Robot
  • Author(s): Martin Quinson
  • Date: 2013-01-31 00:24:51 UTC
  • mfrom: (10.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20130131002451-krejhf7w7h24lpsc
Tags: 3.9~rc1-1
* New upstream release: the "Grasgory" release. Major changes:
  - Gras was completely removed from this version.
  - Documentation reorganization to ease browsing it.
  - New default value for the TCP_gamma parameter: 4MiB

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
} s_SD_link_t;
57
57
 
58
58
/* Workstation */
 
59
typedef s_xbt_dictelm_t s_SD_workstation_t;
59
60
typedef struct SD_workstation {
60
 
  void *surf_workstation;       /* surf object */
61
61
  void *data;                   /* user data */
62
62
  e_SD_workstation_access_mode_t access_mode;
63
63
 
64
64
  xbt_fifo_t task_fifo;         /* only used in sequential mode */
65
65
  SD_task_t current_task;       /* only used in sequential mode */
66
 
} s_SD_workstation_t;
 
66
} s_SD_workstation_priv_t, *SD_workstation_priv_t;
 
67
 
 
68
static inline SD_workstation_priv_t SD_workstation_priv(SD_workstation_t host){
 
69
  return xbt_lib_get_level(host, SD_HOST_LEVEL);
 
70
}
67
71
 
68
72
/* Task */
69
73
typedef struct SD_task {
75
79
  char *name;
76
80
  int kind;
77
81
  double amount;
 
82
  double alpha;          /* used by typed parallel tasks */
78
83
  double remains;
79
84
  double start_time;
80
85
  double finish_time;
88
93
  /* dependencies */
89
94
  xbt_dynar_t tasks_before;
90
95
  xbt_dynar_t tasks_after;
91
 
  unsigned int unsatisfied_dependencies;
 
96
  int unsatisfied_dependencies;
92
97
  unsigned int is_not_ready;
93
98
 
94
99
  /* scheduling parameters (only exist in state SD_SCHEDULED) */