@@ -26,29 +26,35 @@ extern "C"
2626/// Enum for OS independent thread priorities
2727enum ThreadPriority
2828{
29+ THREAD_PRIORITY_LOWEST ,
30+ THREAD_PRIORITY_LOWEST_PLUS1 ,
31+ THREAD_PRIORITY_LOWEST_PLUS2 ,
32+ THREAD_PRIORITY_LOWEST_PLUS3 ,
33+ THREAD_PRIORITY_LOW_MINUS3 ,
34+ THREAD_PRIORITY_LOW_MINUS2 ,
35+ THREAD_PRIORITY_LOW_MINUS1 ,
2936 THREAD_PRIORITY_LOW ,
3037 THREAD_PRIORITY_LOW_PLUS1 ,
3138 THREAD_PRIORITY_LOW_PLUS2 ,
3239 THREAD_PRIORITY_LOW_PLUS3 ,
33- THREAD_PRIORITY_LOW_PLUS4 ,
34- THREAD_PRIORITY_LOW_PLUS5 ,
35- THREAD_PRIORITY_MEDIUM_MINUS5 ,
36- THREAD_PRIORITY_MEDIUM_MINUS4 ,
3740 THREAD_PRIORITY_MEDIUM_MINUS3 ,
3841 THREAD_PRIORITY_MEDIUM_MINUS2 ,
3942 THREAD_PRIORITY_MEDIUM_MINUS1 ,
4043 THREAD_PRIORITY_MEDIUM ,
4144 THREAD_PRIORITY_MEDIUM_PLUS1 ,
4245 THREAD_PRIORITY_MEDIUM_PLUS2 ,
4346 THREAD_PRIORITY_MEDIUM_PLUS3 ,
44- THREAD_PRIORITY_MEDIUM_PLUS4 ,
45- THREAD_PRIORITY_MEDIUM_PLUS5 ,
46- THREAD_PRIORITY_HIGH_MINUS5 ,
47- THREAD_PRIORITY_HIGH_MINUS4 ,
4847 THREAD_PRIORITY_HIGH_MINUS3 ,
4948 THREAD_PRIORITY_HIGH_MINUS2 ,
5049 THREAD_PRIORITY_HIGH_MINUS1 ,
51- THREAD_PRIORITY_HIGH
50+ THREAD_PRIORITY_HIGH ,
51+ THREAD_PRIORITY_HIGH_PLUS1 ,
52+ THREAD_PRIORITY_HIGH_PLUS2 ,
53+ THREAD_PRIORITY_HIGH_PLUS3 ,
54+ THREAD_PRIORITY_HIGHEST_MINUS3 ,
55+ THREAD_PRIORITY_HIGHEST_MINUS2 ,
56+ THREAD_PRIORITY_HIGHEST_MINUS1 ,
57+ THREAD_PRIORITY_HIGHEST
5258};
5359
5460/// Calculates an OS specific thread priority from a ThreadPriority value.
@@ -58,7 +64,7 @@ enum ThreadPriority
5864 * \return RCUTILS_RET_OK on systems that support POSIX
5965 */
6066RCUTILS_LOCAL
61- rcutils_ret_t calculate_os_thread_priority (
67+ rcutils_ret_t calculate_os_fifo_thread_priority (
6268 const int thread_priority ,
6369 int * os_priority );
6470
0 commit comments