Changeset 112396de in rtems


Ignore:
Timestamp:
Apr 10, 2012, 8:54:22 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
e752630
Parents:
dc62a48c
git-author:
Sebastian Huber <sebastian.huber@…> (04/10/12 08:54:22)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/11/12 09:24:18)
Message:

rbtree: New function _RBTree_Iterate_unprotected()

Location:
cpukit/score
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/Makefile.am

    rdc62a48c r112396de  
    266266libscore_a_SOURCES += src/rbtree.c \
    267267    src/rbtreeextract.c src/rbtreefind.c src/rbtreefindheader.c \
    268     src/rbtreeget.c src/rbtreeinsert.c src/rbtreepeek.c src/rbtreenext.c
     268    src/rbtreeget.c src/rbtreeinsert.c src/rbtreepeek.c src/rbtreenext.c \
     269    src/rbtreeiterate.c
    269270
    270271## THREAD_C_FILES
  • cpukit/score/include/rtems/score/rbtree.h

    rdc62a48c r112396de  
    349349);
    350350
     351/**
     352 * @brief Red-black tree visitor.
     353 *
     354 * @param[in] node The node.
     355 * @param[in] dir The direction.
     356 * @param[in] visitor_arg The visitor argument.
     357 *
     358 * @retval true Stop the iteration.
     359 * @retval false Continue the iteration.
     360 *
     361 * @see _RBTree_Iterate_unprotected().
     362 */
     363typedef bool (*RBTree_Visitor)(
     364  const RBTree_Node *node,
     365  RBTree_Direction dir,
     366  void *visitor_arg
     367);
     368
     369/**
     370 * @brief Red-black tree iteration.
     371 *
     372 * @param[in] rbtree The red-black tree.
     373 * @param[in] dir The direction.
     374 * @param[in] visitor The visitor.
     375 * @param[in] visitor_arg The visitor argument.
     376 */
     377void _RBTree_Iterate_unprotected(
     378  const RBTree_Control *rbtree,
     379  RBTree_Direction dir,
     380  RBTree_Visitor visitor,
     381  void *visitor_arg
     382);
     383
    351384#ifndef __RTEMS_APPLICATION__
    352385#include <rtems/score/rbtree.inl>
Note: See TracChangeset for help on using the changeset viewer.