diff --git a/miosix/kernel/scheduler/priority/priority_scheduler_types.h b/miosix/kernel/scheduler/priority/priority_scheduler_types.h index 454776d396fea0266b467b04f7d8940197a5ffa2..600c4e0676eae389078d60a0e2e48a4f9bc9800a 100644 --- a/miosix/kernel/scheduler/priority/priority_scheduler_types.h +++ b/miosix/kernel/scheduler/priority/priority_scheduler_types.h @@ -91,11 +91,21 @@ inline bool operator<(PrioritySchedulerPriority a, PrioritySchedulerPriority b) return a.get() < b.get(); } +inline bool operator<=(PrioritySchedulerPriority a, PrioritySchedulerPriority b) +{ + return a.get() <= b.get(); +} + inline bool operator>(PrioritySchedulerPriority a, PrioritySchedulerPriority b) { return a.get() > b.get(); } +inline bool operator>=(PrioritySchedulerPriority a, PrioritySchedulerPriority b) +{ + return a.get() >= b.get(); +} + inline bool operator==(PrioritySchedulerPriority a, PrioritySchedulerPriority b) { return a.get() == b.get();