source: rtems/c/src/exec/posix/inline/rtems/posix/priority.inl @ eb5a7e07

4.104.114.84.95
Last change on this file since eb5a7e07 was eb5a7e07, checked in by Joel Sherrill <joel.sherrill@…>, on 10/06/95 at 20:48:38

fixed missing CVS IDs

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