Changeset a74c869 in rtems


Ignore:
Timestamp:
Jul 23, 2009, 3:46:48 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
4e4f06b
Parents:
7611ed8e
Message:

2009-07-23 Joel Sherrill <joel.sherrill@…>

  • score/src/iterateoverthreads.c: Restructure a bit to make analysis easier.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r7611ed8e ra74c869  
     12009-07-23      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * score/src/iterateoverthreads.c: Restructure a bit to make analysis
     4        easier.
     5
    162009-07-23      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • cpukit/score/src/iterateoverthreads.c

    r7611ed8e ra74c869  
    3333    return;
    3434
    35   for ( api_index = 1 ;
    36         api_index <= OBJECTS_APIS_LAST ;
    37         api_index++ ) {
     35  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
    3836    if ( !_Objects_Information_table[ api_index ] )
    3937      continue;
     38
    4039    information = _Objects_Information_table[ api_index ][ 1 ];
    41     if ( information ) {
    42       for ( i=1 ; i <= information->maximum ; i++ ) {
    43         the_thread = (Thread_Control *)information->local_table[ i ];
     40    if ( !information )
     41      continue;
    4442
    45         if ( !the_thread )
    46           continue;
     43    for ( i=1 ; i <= information->maximum ; i++ ) {
     44      the_thread = (Thread_Control *)information->local_table[ i ];
    4745
    48         (*routine)(the_thread);
    49       }
     46      if ( !the_thread )
     47        continue;
     48
     49      (*routine)(the_thread);
    5050    }
    5151  }
Note: See TracChangeset for help on using the changeset viewer.