Scheduler
rmsDiscipline.cpp
Go to the documentation of this file.
1 
10 #include "rmsDiscipline.h"
11 
12 #include <algorithm>
13 
14 #include <scheduler/process.h>
15 
16 using namespace Scheduler;
17 
19 {
20  return "Rate Monotonic Scheduling Discipline";
21 }
22 
23 
25 {
26  return [](std::shared_ptr<Process> a, std::shared_ptr<Process> b){return a->getPeriod() < b->getPeriod();};
27 }
28 
29 
30 
31 
32 
33 
34 
35 
36 
37 
38 
39 
40 
41 
PriorityDiscipline::ComparatorPointer getComparator() override
return a function pointer to a function that provides comparison of tasks&#39; priorities ...
virtual std::string getName() override
returns the name of that discipline
bool(* ComparatorPointer)(std::shared_ptr< Process >, std::shared_ptr< Process >)