Changeset 3dbaf97 in rtems


Ignore:
Timestamp:
Nov 6, 2007, 9:40:01 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
ebfbcea
Parents:
7fa99def
Message:

2007-11-06 Joel Sherrill <joel.sherrill@…>

PR 1266/cpukit

  • posix/src/keycreate.c, posix/src/keyrundestructors.c: Use API instead of class for key indexing.
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r7fa99def r3dbaf97  
     12007-11-06      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        PR 1266/cpukit
     4        * posix/src/keycreate.c, posix/src/keyrundestructors.c: Use API instead
     5        of class for key indexing.
     6
    172007-11-06      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • cpukit/posix/src/keycreate.c

    r7fa99def r3dbaf97  
    4747   *  This is a bit more complex than one might initially expect because
    4848   *  APIs are optional.  Thus there may be no ITRON tasks to have keys
    49    *  for.  [NOTE: Currently RTEMS Classic API tasks are not always enabled.]
     49   *  for.  [NOTE: Currently RTEMS Classic API tasks are always enabled.]
    5050   */
    5151
  • cpukit/posix/src/keyrundestructors.c

    r7fa99def r3dbaf97  
    3232{
    3333  uint32_t             index;
    34   uint32_t             pthread_index;
    35   uint32_t             pthread_class;
     34  uint32_t             thread_index;
     35  uint32_t             thread_api;
    3636  uint32_t             iterations;
    3737  boolean              are_all_null;
     
    3939  void                *value;
    4040
    41   pthread_index = _Objects_Get_index( thread->Object.id );
    42   pthread_class = _Objects_Get_class( thread->Object.id );
     41  thread_index = _Objects_Get_index( thread->Object.id );
     42  thread_api   = _Objects_Get_API( thread->Object.id );
    4343
    4444  iterations = 0;
     
    5454
    5555      if ( the_key && the_key->is_active && the_key->destructor ) {
    56         value = the_key->Values[ pthread_class ][ pthread_index ];
     56        value = the_key->Values[ thread_api ][ thread_index ];
    5757        if ( value ) {
    5858          (*the_key->destructor)( value );
    59           if ( the_key->Values[ pthread_class ][ pthread_index ] )
     59          if ( the_key->Values[ thread_api ][ thread_index ] )
    6060            are_all_null = FALSE;
    6161        }
Note: See TracChangeset for help on using the changeset viewer.