Changeset 8a83a86 in rtems


Ignore:
Timestamp:
Apr 10, 2012, 8:54:22 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Children:
38f8e548
Parents:
7e4572f
Message:

rbtree: New function _RBTree_Iterate_unprotected()

Location:
cpukit/score
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/Makefile.am

    r7e4572f r8a83a86  
    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

    r7e4572f r8a83a86  
    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.