Ignore:
Timestamp:
Jul 22, 2009, 12:09:31 AM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
e1f0b2d
Parents:
4b45c13
Message:

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

  • posix/include/rtems/posix/key.h, posix/src/keycreate.c, posix/src/keydelete.c, posix/src/keyrundestructors.c: Restructure a bit to make it easier to do coverage analysis. Eliminate is_active member of control structure because it was redundant with very the key object was open or closed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/keyrundestructors.c

    r4b45c13 r12a191ae  
    6060        _POSIX_Keys_Information.local_table[ index ];
    6161
    62       if ( the_key && the_key->is_active && the_key->destructor ) {
    63         value = the_key->Values[ thread_api ][ thread_index ];
    64         if ( value ) {
    65           (*the_key->destructor)( value );
    66           if ( the_key->Values[ thread_api ][ thread_index ] )
    67             are_all_null = false;
    68         }
     62      if ( !the_key )
     63        continue;
     64      if ( !the_key->destructor )
     65        continue;
     66
     67      value = the_key->Values[ thread_api ][ thread_index ];
     68      if ( value ) {
     69        (*the_key->destructor)( value );
     70        if ( the_key->Values[ thread_api ][ thread_index ] )
     71          are_all_null = false;
    6972      }
    7073    }
Note: See TracChangeset for help on using the changeset viewer.