4.104.114.84.95
Last change
on this file since 09c1e31d was
09c1e31d,
checked in by Joel Sherrill <joel.sherrill@…>, on 06/05/96 at 14:43:52
|
added comments to priority.h to document the definition of posix priority
and how it corresponds to rtems core priority.
Schedule was renamed schedparam
|
-
Property mode set to
100644
|
File size:
696 bytes
|
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 | * 1003.1b-1993,2.2.2.80 definition of priority, p. 19 |
---|
14 | * |
---|
15 | * "Numericallly higher values represent higher priorities." |
---|
16 | * |
---|
17 | * Thus, RTEMS Core has priorities run in the opposite sense of the POSIX API. |
---|
18 | */ |
---|
19 | |
---|
20 | #define POSIX_SCHEDULER_MAXIMUM_PRIORITY (255) |
---|
21 | |
---|
22 | #define POSIX_SCHEDULER_MINIMUM_PRIORITY (1) |
---|
23 | |
---|
24 | STATIC INLINE boolean _POSIX_Priority_Is_valid( |
---|
25 | int priority |
---|
26 | ); |
---|
27 | |
---|
28 | STATIC INLINE Priority_Control _POSIX_Priority_To_core( |
---|
29 | int priority |
---|
30 | ); |
---|
31 | |
---|
32 | STATIC INLINE int _POSIX_Priority_From_core( |
---|
33 | Priority_Control priority |
---|
34 | ); |
---|
35 | |
---|
36 | #include <rtems/posix/priority.inl> |
---|
37 | |
---|
38 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.