source: rtems/cpukit/posix/inline/rtems/posix/priority.inl @ c701f197

4.104.114.84.95
Last change on this file since c701f197 was 5e9b32b, checked in by Joel Sherrill <joel.sherrill@…>, on 09/26/95 at 19:27:15

posix support initially added

  • Property mode set to 100644
File size: 429 bytes
Line 
1
2#ifndef __RTEMS_POSIX_PRIORITY_inl
3#define __RTEMS_POSIX_PRIORITY_inl
4
5STATIC INLINE boolean _POSIX_Priority_Is_valid(
6  int priority
7)
8{
9  return (boolean) priority >= 1 && priority <= 255;
10}
11
12STATIC INLINE Priority_Control _POSIX_Priority_To_core(
13  int priority
14)
15{
16  return (Priority_Control) 256 - priority;
17}
18
19STATIC 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.