Rev 1245 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1228 | giacomo | 1 | /* Generic Struct for loader task */ |
1225 | giacomo | 2 | |
1239 | giacomo | 3 | #include "lconst.h" |
1238 | giacomo | 4 | |
1228 | giacomo | 5 | struct loader_task { |
6 | |||
1246 | giacomo | 7 | char name[20]; //Task name |
8 | int task_type; //Tast type (OS,CT,BT) |
||
9 | int contract; //Contract number |
||
10 | int local_scheduler; //Local scheduler for the task |
||
11 | int number; //How many copies of this task |
||
12 | int group; //Group number |
||
1237 | giacomo | 13 | |
1246 | giacomo | 14 | struct timespec deadline; //Task deadline |
15 | struct timespec wcet; //Task wcet |
||
1228 | giacomo | 16 | |
1246 | giacomo | 17 | int act_number; //Number of activations precalcolated |
18 | int act_current; //Actual activation number |
||
1228 | giacomo | 19 | |
1246 | giacomo | 20 | struct timespec *act; //Activation list |
21 | struct timespec *exec; //Execution time list |
||
1231 | giacomo | 22 | |
1225 | giacomo | 23 | }; |
24 | |||
1244 | giacomo | 25 | struct loader_contract { |
26 | |||
1246 | giacomo | 27 | int number; //Contract number |
1244 | giacomo | 28 | struct timespec cmin; |
29 | struct timespec tmax; |
||
30 | struct timespec cmax; |
||
31 | struct timespec tmin; |
||
32 | int workload; |
||
1245 | giacomo | 33 | int local_scheduler; |
1246 | giacomo | 34 | int server; //Server number linked to this contract |
1244 | giacomo | 35 | |
1245 | giacomo | 36 | }; |
1244 | giacomo | 37 |