4.115
Last change
on this file since a55e305 was
a55e305,
checked in by Joel Sherrill <joel.sherrill@…>, on 07/29/10 at 17:52:10
|
2010-07-29 Gedare Bloom <giddyup44@…>
PR 1635/cpukit
- sapi/src/exinit.c, score/Makefile.am, score/preinstall.am,
score/include/rtems/score/bitfield.h,
score/include/rtems/score/priority.h,
score/include/rtems/score/thread.h,
score/inline/rtems/score/priority.inl,
score/inline/rtems/score/thread.inl,
score/src/threadchangepriority.c, score/src/threadclearstate.c,
score/src/threadready.c, score/src/threadresume.c,
score/src/threadsetpriority.c, score/src/threadsetstate.c,
score/src/threadsettransient.c, score/src/threadsuspend.c:
Refactoring of priority handling, to isolate the bitmap
implementation of priorities in the supercore so that priority
management is a little more modular. This change is in anticipation
of scheduler implementations that can select how they manage tracking
priority levels / finding the highest priority ready task. Note that
most of the changes here are simple renaming, to clarify the use of
the bitmap-based priority management.
- score/include/rtems/score/prioritybitmap.h,
score/inline/rtems/score/prioritybitmap.inl: New files.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file rtems/score/priority.inl |
---|
3 | * |
---|
4 | * This file contains the static inline implementation of all inlined |
---|
5 | * routines in the Priority Handler. |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * COPYRIGHT (c) 1989-2004. |
---|
10 | * On-Line Applications Research Corporation (OAR). |
---|
11 | * |
---|
12 | * The license and distribution terms for this file may be |
---|
13 | * found in the file LICENSE in this distribution or at |
---|
14 | * http://www.rtems.com/license/LICENSE. |
---|
15 | * |
---|
16 | * $Id$ |
---|
17 | */ |
---|
18 | |
---|
19 | #ifndef _RTEMS_SCORE_PRIORITY_H |
---|
20 | # error "Never use <rtems/score/priority.inl> directly; include <rtems/score/priority.h> instead." |
---|
21 | #endif |
---|
22 | |
---|
23 | #ifndef _RTEMS_SCORE_PRIORITY_INL |
---|
24 | #define _RTEMS_SCORE_PRIORITY_INL |
---|
25 | |
---|
26 | /** |
---|
27 | * @addtogroup ScorePriority |
---|
28 | * @{ |
---|
29 | */ |
---|
30 | |
---|
31 | /** |
---|
32 | * This function returns true if the_priority if valid for a |
---|
33 | * user task, and false otherwise. |
---|
34 | */ |
---|
35 | |
---|
36 | RTEMS_INLINE_ROUTINE bool _Priority_Is_valid ( |
---|
37 | Priority_Control the_priority |
---|
38 | ) |
---|
39 | { |
---|
40 | /* |
---|
41 | * Since PRIORITY_MINIMUM is 0 and priorities are stored unsigned, |
---|
42 | * then checking for less than 0 is unnecessary. |
---|
43 | */ |
---|
44 | |
---|
45 | return ( the_priority <= PRIORITY_MAXIMUM ); |
---|
46 | } |
---|
47 | |
---|
48 | |
---|
49 | |
---|
50 | /**@}*/ |
---|
51 | |
---|
52 | #endif |
---|
53 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.