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