aboutsummaryrefslogtreecommitdiffstats
path: root/native/include/edf/gedf.h
blob: 63659e383666e063b6d4b8e708ea7eb99c5bfd00 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef GEDF_H
#define GEDF_h

class GlobalEDF : public SchedulabilityTest
{

 private:
    unsigned int m;
    unsigned long rta_step;
    bool want_ffdbf;
    bool want_load;
    bool want_baruah;
    bool want_rta;

 public:
 GlobalEDF(unsigned int num_processors,
           unsigned long rta_min_step = 1,
           bool want_baruah = true,
           bool want_rta    = true,
           bool want_ffdbf  = false,
           bool want_load   = false)
     : m(num_processors), rta_step(rta_min_step),
       want_ffdbf(want_ffdbf),
       want_load(want_load),
       want_baruah(want_baruah),
       want_rta(want_rta) {};

    bool is_schedulable(const TaskSet &ts, bool check_preconditions = true);
};


#endif