diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2008-01-09 19:32:52 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2008-01-09 19:32:52 +0000 |
commit | bbbe94132127779e6b48c637f860b710cec6d05c (patch) | |
tree | e3bb8d49bb2d57a86f81591933d474cdfc2bf47a /cpukit/posix/src | |
parent | 2008-01-09 Jennifer Averett <jennifer.averett@OARcorp.com> (diff) | |
download | rtems-bbbe94132127779e6b48c637f860b710cec6d05c.tar.bz2 |
2008-01-09 Jennifer Averett <jennifer.averett@OARcorp.com>
* posix/src/keycreate.c, rtems/src/eventseize.c,
score/include/rtems/score/interr.h: Rearranged source to allow more
test coverage.
Diffstat (limited to 'cpukit/posix/src')
-rw-r--r-- | cpukit/posix/src/keycreate.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/cpukit/posix/src/keycreate.c b/cpukit/posix/src/keycreate.c index be393f8630..faf2a75a35 100644 --- a/cpukit/posix/src/keycreate.c +++ b/cpukit/posix/src/keycreate.c @@ -60,8 +60,19 @@ int pthread_key_create( the_api <= OBJECTS_APIS_LAST; the_api++ ) { - if ( _Objects_Information_table[ the_api ] && - _Objects_Information_table[ the_api ][ 1 ] ) { + if ( _Objects_Information_table[ the_api ] ) { + #if defined(RTEMS_DEBUG) + /* + * Currently all managers are installed if the API is installed. + * This would be a horrible implementation error. + */ + if (_Objects_Information_table[ the_api ][ 1 ] == NULL ) + _Internal_error_Occurred( + INTERNAL_ERROR_CORE, + TRUE, + INTERNAL_ERROR_IMPLEMENTATION + ); + #endif bytes_to_allocate = sizeof( void * ) * (_Objects_Information_table[ the_api ][ 1 ]->maximum + 1); table = _Workspace_Allocate( bytes_to_allocate ); |