Scheduler
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
scheduler
discipline
edfDiscipline.cpp
Go to the documentation of this file.
1
10
#include "
edfDiscipline.h
"
11
12
#include <algorithm>
13
14
#include <
scheduler/process.h
>
15
16
using namespace
Scheduler
;
17
18
std::string
EdfDiscipline::getName
()
19
{
20
return
"Earliest Deadline First Discipline"
;
21
}
22
23
24
PriorityDiscipline::ComparatorPointer
EdfDiscipline::getComparator
()
25
{
26
return
[](std::shared_ptr<Process> a, std::shared_ptr<Process> b){
return
a->getDeadlineTime() < b->getDeadlineTime();};
27
}
edfDiscipline.h
process.h
Scheduler
Definition:
schedulerActions.h:21
Scheduler::EdfDiscipline::getName
virtual std::string getName()
returns the name of that discipline
Definition:
edfDiscipline.cpp:18
Scheduler::EdfDiscipline::getComparator
PriorityDiscipline::ComparatorPointer getComparator() override
return a function pointer to a function that provides comparison of tasks' priorities ...
Definition:
edfDiscipline.cpp:24
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