From 2212a2adf9f760bd01ebaed18664569a302adc9b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 24 Jun 2009 06:38:52 +0000 Subject: 2009-06-24 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. --- cpukit/posix/src/killinfo.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'cpukit/posix/src/killinfo.c') 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; -- cgit v1.2.3