Scheduler
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
scheduler
discipline
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
18
std::string
RmsDiscipline::getName
()
19
{
20
return
"Rate Monotonic Scheduling Discipline"
;
21
}
22
23
24
PriorityDiscipline::ComparatorPointer
RmsDiscipline::getComparator
()
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
Scheduler::RmsDiscipline::getComparator
PriorityDiscipline::ComparatorPointer getComparator() override
return a function pointer to a function that provides comparison of tasks' priorities ...
Definition:
rmsDiscipline.cpp:24
process.h
Scheduler
Definition:
schedulerActions.h:21
rmsDiscipline.h
Scheduler::RmsDiscipline::getName
virtual std::string getName() override
returns the name of that discipline
Definition:
rmsDiscipline.cpp:18
Scheduler::PriorityDiscipline::ComparatorPointer
bool(* ComparatorPointer)(std::shared_ptr< Process >, std::shared_ptr< Process >)
Definition:
priorityDiscipline.h:25
Generated on Sun Nov 26 2017 17:01:36 for Scheduler by
1.8.11