Changeset 3dbaf97 in rtems
- Timestamp:
- Nov 6, 2007, 9:40:01 PM (13 years ago)
- Children:
- ebfbcea
- Parents:
- 7fa99def
- Location:
- cpukit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
r7fa99def r3dbaf97 1 2007-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 1 7 2007-11-06 Joel Sherrill <joel.sherrill@OARcorp.com> 2 8 -
cpukit/posix/src/keycreate.c
r7fa99def r3dbaf97 47 47 * This is a bit more complex than one might initially expect because 48 48 * APIs are optional. Thus there may be no ITRON tasks to have keys 49 * for. [NOTE: Currently RTEMS Classic API tasks are notalways enabled.]49 * for. [NOTE: Currently RTEMS Classic API tasks are always enabled.] 50 50 */ 51 51 -
cpukit/posix/src/keyrundestructors.c
r7fa99def r3dbaf97 32 32 { 33 33 uint32_t index; 34 uint32_t pthread_index;35 uint32_t pthread_class;34 uint32_t thread_index; 35 uint32_t thread_api; 36 36 uint32_t iterations; 37 37 boolean are_all_null; … … 39 39 void *value; 40 40 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 ); 43 43 44 44 iterations = 0; … … 54 54 55 55 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 ]; 57 57 if ( value ) { 58 58 (*the_key->destructor)( value ); 59 if ( the_key->Values[ pthread_class ][ pthread_index ] )59 if ( the_key->Values[ thread_api ][ thread_index ] ) 60 60 are_all_null = FALSE; 61 61 }
Note: See TracChangeset
for help on using the changeset viewer.