4.104.114.84.95
Line | |
---|
1 | /* |
---|
2 | * |
---|
3 | * |
---|
4 | * $Id$ |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef __RTEMS_POSIX_PRIORITY_h |
---|
8 | #define __RTEMS_POSIX_PRIORITY_h |
---|
9 | |
---|
10 | #include <rtems/score/priority.h> |
---|
11 | |
---|
12 | /* |
---|
13 | * RTEMS Core has priorities run in the opposite sense of the POSIX API. |
---|
14 | */ |
---|
15 | |
---|
16 | #define POSIX_SCHEDULER_MAXIMUM_PRIORITY (255) |
---|
17 | |
---|
18 | #define POSIX_SCHEDULER_MINIMUM_PRIORITY (1) |
---|
19 | |
---|
20 | STATIC INLINE boolean _POSIX_Priority_Is_valid( |
---|
21 | int priority |
---|
22 | ); |
---|
23 | |
---|
24 | STATIC INLINE Priority_Control _POSIX_Priority_To_core( |
---|
25 | int priority |
---|
26 | ); |
---|
27 | |
---|
28 | STATIC INLINE int _POSIX_Priority_From_core( |
---|
29 | Priority_Control priority |
---|
30 | ); |
---|
31 | |
---|
32 | #include <rtems/posix/priority.inl> |
---|
33 | |
---|
34 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.