Changeset dac340dd in rtems


Ignore:
Timestamp:
Dec 12, 2014, 10:19:10 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
172e953
Parents:
3feb372
git-author:
Sebastian Huber <sebastian.huber@…> (12/12/14 10:19:10)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/12/14 12:16:03)
Message:

posix: Simplify _POSIX_Keys_Find()

Location:
cpukit/posix
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/include/rtems/posix/keyimpl.h

    r3feb372 rdac340dd  
    170170
    171171RTEMS_INLINE_ROUTINE RBTree_Node *_POSIX_Keys_Find(
    172   pthread_key_t              key,
    173   Thread_Control            *thread,
    174   POSIX_Keys_Key_value_pair *search_node
     172  pthread_key_t   key,
     173  Thread_Control *thread
    175174)
    176175{
    177   search_node->key = key;
    178   search_node->thread = thread;
     176  POSIX_Keys_Key_value_pair search_node;
     177
     178  search_node.key = key;
     179  search_node.thread = thread;
    179180
    180181  return _RBTree_Find(
    181182    &_POSIX_Keys_Key_value_lookup_tree,
    182     &search_node->Key_value_lookup_node,
     183    &search_node.Key_value_lookup_node,
    183184    _POSIX_Keys_Key_value_compare,
    184185    true
  • cpukit/posix/src/keyfreememory.c

    r3feb372 rdac340dd  
    2727)
    2828{
    29   POSIX_Keys_Key_value_pair search_node;
    3029  POSIX_Keys_Key_value_pair *p;
    3130  RBTree_Node *iter, *next;
     
    3332
    3433  key_id = the_key->Object.id;
    35   iter = _POSIX_Keys_Find( key_id, 0, &search_node );
     34  iter = _POSIX_Keys_Find( key_id, 0 );
    3635  if ( !iter )
    3736    return;
  • cpukit/posix/src/keygetspecific.c

    r3feb372 rdac340dd  
    4141  POSIX_Keys_Control          *the_key;
    4242  Objects_Locations            location;
    43   POSIX_Keys_Key_value_pair    search_node;
    4443  RBTree_Node                 *p;
    4544  void                        *key_data;
     
    5049
    5150    case OBJECTS_LOCAL:
    52       p = _POSIX_Keys_Find( key, _Thread_Executing, &search_node );
     51      p = _POSIX_Keys_Find( key, _Thread_Executing );
    5352      if ( p != NULL ) {
    5453        value_pair_p = POSIX_KEYS_RBTREE_NODE_TO_KEY_VALUE_PAIR( p );
  • cpukit/posix/src/keysetspecific.c

    r3feb372 rdac340dd  
    3939  POSIX_Keys_Key_value_pair   *value_pair_ptr;
    4040  RBTree_Node                 *p;
    41   POSIX_Keys_Key_value_pair    search_node;
    4241  Thread_Control              *executing;
    4342
     
    4746    case OBJECTS_LOCAL:
    4847      executing = _Thread_Executing;
    49       p = _POSIX_Keys_Find( key, executing, &search_node );
     48      p = _POSIX_Keys_Find( key, executing );
    5049      if ( p != NULL ) {
    5150        value_pair_ptr = POSIX_KEYS_RBTREE_NODE_TO_KEY_VALUE_PAIR( p );
Note: See TracChangeset for help on using the changeset viewer.