4.104.114.84.95
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | */ |
---|
4 | |
---|
5 | #ifndef __RTEMS_POSIX_PRIORITY_inl |
---|
6 | #define __RTEMS_POSIX_PRIORITY_inl |
---|
7 | |
---|
8 | STATIC INLINE boolean _POSIX_Priority_Is_valid( |
---|
9 | int priority |
---|
10 | ) |
---|
11 | { |
---|
12 | return (boolean) priority >= 1 && priority <= 255; |
---|
13 | } |
---|
14 | |
---|
15 | STATIC INLINE Priority_Control _POSIX_Priority_To_core( |
---|
16 | int priority |
---|
17 | ) |
---|
18 | { |
---|
19 | return (Priority_Control) 256 - priority; |
---|
20 | } |
---|
21 | |
---|
22 | STATIC INLINE int _POSIX_Priority_From_core( |
---|
23 | Priority_Control priority |
---|
24 | ) |
---|
25 | { |
---|
26 | return 256 - priority; |
---|
27 | } |
---|
28 | |
---|
29 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.