diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-07-23 15:46:48 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-07-23 15:46:48 +0000 |
commit | a74c869600d99bff9b22684645e2f59b30079a4b (patch) | |
tree | c725282d1d236f0735d2f56998744860a85b857c /cpukit/score/src/iterateoverthreads.c | |
parent | Remove. (diff) | |
download | rtems-a74c869600d99bff9b22684645e2f59b30079a4b.tar.bz2 |
2009-07-23 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/iterateoverthreads.c: Restructure a bit to make analysis
easier.
Diffstat (limited to 'cpukit/score/src/iterateoverthreads.c')
-rw-r--r-- | cpukit/score/src/iterateoverthreads.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cpukit/score/src/iterateoverthreads.c b/cpukit/score/src/iterateoverthreads.c index 398a1a1f59..2e9b28eaba 100644 --- a/cpukit/score/src/iterateoverthreads.c +++ b/cpukit/score/src/iterateoverthreads.c @@ -32,21 +32,21 @@ void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) if ( !routine ) return; - for ( api_index = 1 ; - api_index <= OBJECTS_APIS_LAST ; - api_index++ ) { + for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) continue; + information = _Objects_Information_table[ api_index ][ 1 ]; - if ( information ) { - for ( i=1 ; i <= information->maximum ; i++ ) { - the_thread = (Thread_Control *)information->local_table[ i ]; + if ( !information ) + continue; + + for ( i=1 ; i <= information->maximum ; i++ ) { + the_thread = (Thread_Control *)information->local_table[ i ]; - if ( !the_thread ) - continue; + if ( !the_thread ) + continue; - (*routine)(the_thread); - } + (*routine)(the_thread); } } |