RTEMS CPU Kit with SuperCore  4.11.3
priorityimpl.h
Go to the documentation of this file.
1 
10 /*
11  * COPYRIGHT (c) 1989-2011.
12  * On-Line Applications Research Corporation (OAR).
13  *
14  * The license and distribution terms for this file may be
15  * found in the file LICENSE in this distribution or at
16  * http://www.rtems.org/license/LICENSE.
17  */
18 
19 #ifndef _RTEMS_POSIX_PRIORITYIMPL_H
20 #define _RTEMS_POSIX_PRIORITYIMPL_H
21 
22 #include <rtems/score/priority.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
54 #define POSIX_SCHEDULER_MAXIMUM_PRIORITY (PRIORITY_MAXIMUM - 1)
55 
56 
60 #define POSIX_SCHEDULER_MINIMUM_PRIORITY (1)
61 
77  int priority
78 );
79 
91  int priority
92 )
93 {
94  return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
95 }
96 
108  Priority_Control priority
109 )
110 {
111  return (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
112 }
113 
116 #ifdef __cplusplus
117 }
118 #endif
119 
120 #endif
Thread Priority Manipulation Routines.
#define RTEMS_INLINE_ROUTINE
The following (in conjunction with compiler arguments) are used to choose between the use of static i...
Definition: basedefs.h:135
uint32_t Priority_Control
The following type defines the control block used to manage thread priorities.
Definition: priority.h:56
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(int priority)
Convert POSIX priority to SuperCore priority.
Definition: priorityimpl.h:90
RTEMS_INLINE_ROUTINE int _POSIX_Priority_From_core(Priority_Control priority)
Convert SuperCore priority To POSIX priority.
Definition: priorityimpl.h:107
bool _POSIX_Priority_Is_valid(int priority)
Check if POSIX priority is valid.
Definition: psxpriorityisvalid.c:24
#define POSIX_SCHEDULER_MAXIMUM_PRIORITY
1003.1b-1993,2.2.2.80 definition of priority, p.
Definition: priorityimpl.h:54