RecoSim  1.0
 All Classes Files Functions Variables Enumerations
user_task_priority_comparator.h
Go to the documentation of this file.
1 
12 #ifndef USER_TASK_PRIORITY_COMPARATOR_H
13 #define USER_TASK_PRIORITY_COMPARATOR_H
14 
15 #include "task_priority_comparator_interface.h"
16 
17 /*
18  * Replace USER by your own priority comparator name declared in FoRTReSS Preference
19  *
20  * Help : go to FoRTReSS Menu : Help => FoRTReSS API => Scheduler API => Task Priority Comparator
21  *
22  * Inputs (Task_priority_comparator_interface): lhs (left), rhs (right)
23  * Return (Boolean) : comparison of lhs and rhs parameters
24  *
25  * Example of EDF priority scheme :
26  * BEGIN_PRIORITY_COMPARATOR(USER)
27  * {
28  * return (lhs.get_deadline_time() > rhs.get_deadline_time());
29  * }
30  * END_PRIORITY_COMPARATOR
31  */
32 
33 
34 /* USER priority comparator scheme */
35 BEGIN_PRIORITY_COMPARATOR(USER)
36 {
37  // ToDo
38 }
39 END_PRIORITY_COMPARATOR
40 
41 BEGIN_PRIORITY_COMPARATOR(EA3dead)
42 {
43  return false;
44 }
45 END_PRIORITY_COMPARATOR
46 
47 #endif