diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-03-04 15:54:12 -0600 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-03-07 13:21:11 -0600 |
commit | e6c87f78724743bc74a38678f93ed579ace840f2 (patch) | |
tree | dce3962edb00574dade0c8caf837cd85b9607831 /cpukit/posix/src/key.c | |
parent | Remove trailing whitespace in previous patches (diff) | |
download | rtems-e6c87f78724743bc74a38678f93ed579ace840f2.tar.bz2 |
POSIX keys now enabled in all configurations.
Formerly POSIX keys were only enabled when POSIX threads
were enabled. Because they are a truly safe alternative
to per-task variables in an SMP system, they are being
enabled in all configurations.
Diffstat (limited to 'cpukit/posix/src/key.c')
-rw-r--r-- | cpukit/posix/src/key.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cpukit/posix/src/key.c b/cpukit/posix/src/key.c index 2b32b50bcf..41bb946521 100644 --- a/cpukit/posix/src/key.c +++ b/cpukit/posix/src/key.c @@ -7,7 +7,7 @@ /* * Copyright (c) 2012 Zhongwei Yao. - * COPYRIGHT (c) 1989-2008. + * COPYRIGHT (c) 1989-2014. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -19,8 +19,9 @@ #include "config.h" #endif +#include <rtems/config.h> + #include <rtems/posix/keyimpl.h> -#include <rtems/posix/config.h> #include <rtems/score/chainimpl.h> #include <rtems/score/objectimpl.h> #include <rtems/score/wkspace.h> @@ -72,7 +73,7 @@ int _POSIX_Keys_Key_value_lookup_tree_compare_function( static uint32_t _POSIX_Keys_Get_keypool_bump_count( void ) { - uint32_t max = Configuration_POSIX_API.maximum_key_value_pairs; + uint32_t max = Configuration.maximum_key_value_pairs; return _Objects_Is_unlimited( max ) ? _Objects_Maximum_per_allocation( max ) : 0; @@ -80,7 +81,7 @@ static uint32_t _POSIX_Keys_Get_keypool_bump_count( void ) static uint32_t _POSIX_Keys_Get_initial_keypool_size( void ) { - uint32_t max = Configuration_POSIX_API.maximum_key_value_pairs; + uint32_t max = Configuration.maximum_key_value_pairs; return _Objects_Maximum_per_allocation( max ); } @@ -135,7 +136,7 @@ void _POSIX_Key_Manager_initialization(void) &_POSIX_Keys_Information, /* object information table */ OBJECTS_POSIX_API, /* object API */ OBJECTS_POSIX_KEYS, /* object class */ - Configuration_POSIX_API.maximum_keys, + Configuration.maximum_keys, /* maximum objects of this class */ sizeof( POSIX_Keys_Control ), /* size of this object's control block */ |