Scheduler
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 
19 {
20  return "Earliest Deadline First Discipline";
21 }
22 
23 
25 {
26  return [](std::shared_ptr<Process> a, std::shared_ptr<Process> b){return a->getDeadlineTime() < b->getDeadlineTime();};
27 }
virtual std::string getName()
returns the name of that discipline
PriorityDiscipline::ComparatorPointer getComparator() override
return a function pointer to a function that provides comparison of tasks&#39; priorities ...
bool(* ComparatorPointer)(std::shared_ptr< Process >, std::shared_ptr< Process >)