23 #ifndef TASK_PRIORITY_COMPARATOR_H
24 #define TASK_PRIORITY_COMPARATOR_H
26 #include "task_priority_comparator_interface.h"
32 BEGIN_PRIORITY_COMPARATOR(EDF)
34 return (lhs.get_deadline_time() > rhs.get_deadline_time());
36 END_PRIORITY_COMPARATOR
43 BEGIN_PRIORITY_COMPARATOR(EDF_WithPriorityArbiter)
45 if(lhs.get_deadline_time() == rhs.get_deadline_time()) {
46 return (lhs.get_task_priority() > rhs.get_task_priority());
48 return (lhs.get_deadline_time() < rhs.get_deadline_time());
51 END_PRIORITY_COMPARATOR
58 BEGIN_PRIORITY_COMPARATOR(FIFO)
62 END_PRIORITY_COMPARATOR