summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/iterateoverthreads.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-07-26 22:03:18 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-07-26 22:03:18 +0000
commit77c330ce3d71a76495cee444da11ee1d99733117 (patch)
treec542ac7a2b70e3aa819220862c4906726d549d8f /cpukit/score/src/iterateoverthreads.c
parent2010-07-26 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-77c330ce3d71a76495cee444da11ee1d99733117.tar.bz2
2010-07-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/privateenv.c, libmisc/cpuuse/cpuusagereport.c, posix/Makefile.am, posix/include/rtems/posix/key.h, posix/src/keycreate.c, posix/src/keydelete.c, score/src/iterateoverthreads.c: Since removing ITRON, the loop over all APIs for tasks has a path that cannot be reached. Either modify the code or mark tests for NULL as RTEMS_DEBUG. * posix/src/keyfreememory.c: New file.
Diffstat (limited to 'cpukit/score/src/iterateoverthreads.c')
-rw-r--r--cpukit/score/src/iterateoverthreads.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/cpukit/score/src/iterateoverthreads.c b/cpukit/score/src/iterateoverthreads.c
index 2e9b28eaba..0cd8679f8d 100644
--- a/cpukit/score/src/iterateoverthreads.c
+++ b/cpukit/score/src/iterateoverthreads.c
@@ -5,7 +5,7 @@
* for all threads
* invoke specified function
*
- * COPYRIGHT (c) 1989-2003.
+ * COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -33,8 +33,13 @@ void rtems_iterate_over_all_threads(rtems_per_thread_routine routine)
return;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
- if ( !_Objects_Information_table[ api_index ] )
- continue;
+ /*
+ * Since the removal of ITRON, this cannot occur.
+ */
+ #if defined(RTEMS_DEBUG)
+ if ( !_Objects_Information_table[ api_index ] )
+ continue;
+ #endif
information = _Objects_Information_table[ api_index ][ 1 ];
if ( !information )