diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-07-12 14:22:22 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-07-15 10:03:48 -0500 |
commit | 64939bc9efcaf945b493e9c371901de33c3868a3 (patch) | |
tree | e196959688afe714c8c334f93598cb99234970e4 /cpukit/posix/src/key.c | |
parent | rbtree: Delete unused functions (diff) | |
download | rtems-64939bc9efcaf945b493e9c371901de33c3868a3.tar.bz2 |
rbtree: Reduce RBTree_Control size
Remove compare function and is unique indicator from the control
structure. Rename RBTree_Compare_function to RBTree_Compare. Rename
rtems_rbtree_compare_function to rtems_rbtree_compare. Provide C++
compatible initializers. Add compare function and is unique indicator
to _RBTree_Find(), _RBTree_Insert(), rtems_rbtree_find() and
rtems_rbtree_insert(). Remove _RBTree_Is_unique() and
rtems_rbtree_is_unique(). Remove compare function and is unique
indicator from _RBTree_Initialize_empty() and
rtems_rbtree_initialize_empty().
Diffstat (limited to 'cpukit/posix/src/key.c')
-rw-r--r-- | cpukit/posix/src/key.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/cpukit/posix/src/key.c b/cpukit/posix/src/key.c index de61b43e88..105706a92c 100644 --- a/cpukit/posix/src/key.c +++ b/cpukit/posix/src/key.c @@ -26,6 +26,8 @@ #include <rtems/score/objectimpl.h> #include <rtems/score/wkspace.h> +RBTREE_DEFINE_EMPTY( _POSIX_Keys_Key_value_lookup_tree ); + /** * @brief This routine compares the rbtree node by comparing POSIX key first * and comparing thread id second. @@ -42,7 +44,7 @@ * impossible */ -int _POSIX_Keys_Key_value_lookup_tree_compare_function( +int _POSIX_Keys_Key_value_compare( const RBTree_Node *node1, const RBTree_Node *node2 ) @@ -153,11 +155,5 @@ void _POSIX_Key_Manager_initialization(void) #endif ); - _RBTree_Initialize_empty( - &_POSIX_Keys_Key_value_lookup_tree, - _POSIX_Keys_Key_value_lookup_tree_compare_function, - true - ); - _POSIX_Keys_Initialize_keypool(); } |