diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-06-24 06:38:52 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-06-24 06:38:52 +0000 |
commit | 2212a2adf9f760bd01ebaed18664569a302adc9b (patch) | |
tree | 22e0bc1c0f38ded2fc2093369d7b90dc9fafa6ff /cpukit/posix/src/killinfo.c | |
parent | 2009-06-24 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-2212a2adf9f760bd01ebaed18664569a302adc9b.tar.bz2 |
2009-06-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to 'cpukit/posix/src/killinfo.c')
-rw-r--r-- | cpukit/posix/src/killinfo.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/cpukit/posix/src/killinfo.c b/cpukit/posix/src/killinfo.c index 2eb0441fc6..e44016d125 100644 --- a/cpukit/posix/src/killinfo.c +++ b/cpukit/posix/src/killinfo.c @@ -186,13 +186,15 @@ int killinfo( the_info = _Objects_Information_table[ the_api ][ 1 ]; - /* - * This cannot happen in the current (as of June 2009) implementation - * of initialization but at some point, the object information - * structure for a particular manager may not be installed. - */ - if ( !the_info ) - continue; + #if defined(RTEMS_DEBUG) + /* + * This cannot happen in the current (as of June 2009) implementation + * of initialization but at some point, the object information + * structure for a particular manager may not be installed. + */ + if ( !the_info ) + continue; + #endif maximum = the_info->maximum; object_table = the_info->local_table; @@ -217,8 +219,10 @@ int killinfo( api = the_thread->API_Extensions[ THREAD_API_POSIX ]; - if ( !api ) - continue; + #if defined(RTEMS_DEBUG) + if ( !api ) + continue; + #endif if ( !_POSIX_signals_Is_interested( api, mask ) ) continue; |