Changeset 8712622 in rtems


Ignore:
Timestamp:
May 2, 2012, 3:13:22 PM (7 years ago)
Author:
Gedare Bloom <gedare@…>
Branches:
4.11, master
Children:
8572752
Parents:
bc96bad6
git-author:
Gedare Bloom <gedare@…> (05/02/12 15:13:22)
git-committer:
Gedare Bloom <gedare@…> (05/08/12 22:40:44)
Message:

score/rbtree: replace _RBTree_Peek_unprotected with _RBTree_First.

Location:
cpukit/score
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/inline/rtems/score/rbtree.inl

    rbc96bad6 r8712622  
    1111
    1212/*
    13  *  Copyright (c) 2010 Gedare Bloom.
     13 *  Copyright (c) 2010-2012 Gedare Bloom.
    1414 *
    1515 *  The license and distribution terms for this file may be
    1616 *  found in the file LICENSE in this distribution or at
    1717 *  http://www.rtems.com/license/LICENSE.
    18  *
    19  *  $Id$
    2018 */
    2119
     
    460458}
    461459
    462 /** @brief Peek at the First Node (unprotected)
    463  *
    464  *  This function returns a pointer to the first node, minimum if @a dir is 0
    465  *  or maximum if @a dir is 1, from @a the_rbtree without extracting it. 
    466  *  It does NOT disable interrupts to ensure the atomicity of the peek.
    467  *
    468  *  @retval NULL if @a the_rbtree is empty.
    469  */
    470 RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Peek_unprotected(
    471   const RBTree_Control *the_rbtree,
    472   RBTree_Direction dir
    473 )
    474 {
    475   return(the_rbtree->first[dir]);
    476 }
    477 
    478460/** @brief Rotate the_node in the direction passed as second argument
    479461 * 
  • cpukit/score/src/rbtreepeek.c

    rbc96bad6 r8712622  
    11/*
    2  *  Copyright (c) 2010 Gedare Bloom.
     2 *  Copyright (c) 2010-2012 Gedare Bloom.
    33 *
    44 *  The license and distribution terms for this file may be
    55 *  found in the file LICENSE in this distribution or at
    66 *  http://www.rtems.com/license/LICENSE.
    7  *
    8  *  $Id$
    97 */
    108
     
    4644  return_node = NULL;
    4745  _ISR_Disable( level );
    48       return_node = _RBTree_Peek_unprotected( the_rbtree, dir );
     46      return_node = _RBTree_First( the_rbtree, dir );
    4947  _ISR_Enable( level );
    5048  return return_node;
Note: See TracChangeset for help on using the changeset viewer.