source: rtems/cpukit/posix/inline/rtems/posix/priority.inl @ 5e9b32b

4.104.114.84.95
Last change on this file since 5e9b32b was 5e9b32b, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 26, 1995 at 7:27:15 PM

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.