4.104.115
Last change
on this file since 8f6b7b51 was
2212a2ad,
checked in by Joel Sherrill <joel.sherrill@…>, on 06/24/09 at 06:38:52
|
2009-06-24 Joel Sherrill <joel.sherrill@…>
- posix/Makefile.am, posix/include/rtems/posix/priority.h,
posix/include/rtems/posix/pthread.h,
posix/inline/rtems/posix/priority.inl, posix/src/killinfo.c,
posix/src/pthread.c, posix/src/pthreadcreate.c,
posix/src/pthreadsetschedparam.c: Various modifications to improve
binary code coverage analysis. Some of these are to mark code as
debug only. Some are to break conditional expressions into multiple
lines. Some are to move inline methods that are not time critical
into subroutines to make them easier to test. Inlining them multiple
times means that their logic paths are spread across multiple
methods. This explodes the test cases required.
- posix/src/psxpriorityisvalid.c, posix/src/psxtransschedparam.c: New files.
|
-
Property mode set to
100644
|
File size:
544 bytes
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2008. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #if HAVE_CONFIG_H |
---|
13 | #include "config.h" |
---|
14 | #endif |
---|
15 | |
---|
16 | #include <rtems/system.h> |
---|
17 | #include <rtems/posix/priority.h> |
---|
18 | |
---|
19 | bool _POSIX_Priority_Is_valid( |
---|
20 | int priority |
---|
21 | ) |
---|
22 | { |
---|
23 | return ((priority >= POSIX_SCHEDULER_MINIMUM_PRIORITY) && |
---|
24 | (priority <= POSIX_SCHEDULER_MAXIMUM_PRIORITY)); |
---|
25 | |
---|
26 | } |
---|
27 | |
---|
Note: See
TracBrowser
for help on using the repository browser.