summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/rbtree.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cpukit/score/include/rtems/score/rbtree.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/cpukit/score/include/rtems/score/rbtree.h b/cpukit/score/include/rtems/score/rbtree.h
index b3f2ed4c0d..2ec77ead4f 100644
--- a/cpukit/score/include/rtems/score/rbtree.h
+++ b/cpukit/score/include/rtems/score/rbtree.h
@@ -219,15 +219,16 @@ RBTree_Node *_RBTree_Find(
);
/**
- * @brief Insert @a the_node on the Red-Black Tree @a the_rbtree.
+ * @brief Inserts the node into the red-black tree.
*
- * This routine inserts @a the_node on the Red-Black Tree @a the_rbtree.
+ * In case the node is already a node of a tree, then this function yields
+ * unpredictable results.
*
* @param[in] the_rbtree The red-black tree control.
* @param[in] the_node The node to insert.
* @param[in] compare The node compare function.
* @param[in] is_unique If true, then reject nodes with a duplicate key, else
- * otherwise.
+ * insert nodes in FIFO order in case the key value is equal to existing nodes.
*
* @retval NULL Successfully inserted.
* @retval existing_node This is a unique insert and there exists a node with
@@ -487,19 +488,20 @@ RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Successor(
}
/**
- * @brief Gets a node with an extremal key value.
+ * @brief Gets a node with an extremal key value from the red-black tree.
*
* This function extracts a node with the minimum or maximum key value from
* tree and returns a pointer to that node if it exists. In case multiple
- * nodes with an extremal key value exist, then they are extracted in FIFO
- * order.
+ * nodes with a minimum key value exist, then they are extracted in FIFO order.
+ * In case multiple nodes with a maximum key value exist, then they are
+ * extracted in LIFO order.
*
* @param[in] the_rbtree The red-black tree control.
* @param[in] dir Specifies whether to get a node with the minimum (RBT_LEFT)
* or maximum (RBT_RIGHT) key value.
*
* @retval NULL The tree is empty.
- * @retval extremal_node A node with the minimal or maximal key value on the
+ * @retval extremal_node A node with a minimal or maximal key value on the
* tree.
*/
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Get(