Changeset 6e93c836 in rtems for cpukit/sapi


Ignore:
Timestamp:
Jul 22, 2014, 5:42:54 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
b767683a
Parents:
4cd55724
git-author:
Sebastian Huber <sebastian.huber@…> (07/22/14 17:42:54)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/29/14 12:05:08)
Message:

rbtree: Simplify off-tree handling

Only use the parent pointer, since this pointer is never NULL for nodes
which are part of a tree.

Rename functions from *_off_rbtree() to *_off_tree().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/rtems/rbtree.h

    r4cd55724 r6e93c836  
    122122 * indicating the @a node is not part of any rbtree.
    123123 */
    124 RTEMS_INLINE_ROUTINE void rtems_rbtree_set_off_rbtree(
     124RTEMS_INLINE_ROUTINE void rtems_rbtree_set_off_tree(
    125125  rtems_rbtree_node *node
    126126)
    127127{
    128   _RBTree_Set_off_rbtree( node );
     128  _RBTree_Set_off_tree( node );
    129129}
    130130
     
    135135 * off rbtree if the next and previous fields are set to NULL.
    136136 */
    137 RTEMS_INLINE_ROUTINE bool rtems_rbtree_is_node_off_rbtree(
     137RTEMS_INLINE_ROUTINE bool rtems_rbtree_is_node_off_tree(
    138138  const rtems_rbtree_node *node
    139139)
    140140{
    141   return _RBTree_Is_node_off_rbtree( node );
     141  return _RBTree_Is_node_off_tree( node );
    142142}
    143143
Note: See TracChangeset for help on using the changeset viewer.