Ignore:
Timestamp:
Jul 12, 2014, 7:22:22 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
ed7a028
Parents:
7e119990
git-author:
Sebastian Huber <sebastian.huber@…> (07/12/14 19:22:22)
git-committer:
Joel Sherrill <joel.sherrill@…> (07/15/14 15:03:48)
Message:

rbtree: Reduce RBTree_Control size

Remove compare function and is unique indicator from the control
structure. Rename RBTree_Compare_function to RBTree_Compare. Rename
rtems_rbtree_compare_function to rtems_rbtree_compare. Provide C++
compatible initializers. Add compare function and is unique indicator
to _RBTree_Find(), _RBTree_Insert(), rtems_rbtree_find() and
rtems_rbtree_insert(). Remove _RBTree_Is_unique() and
rtems_rbtree_is_unique(). Remove compare function and is unique
indicator from _RBTree_Initialize_empty() and
rtems_rbtree_initialize_empty().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/scheduleredfimpl.h

    r7e119990 r64939bc  
    4545}
    4646
     47int _Scheduler_EDF_Compare(
     48  const RBTree_Node* n1,
     49  const RBTree_Node* n2
     50);
     51
    4752RTEMS_INLINE_ROUTINE void _Scheduler_EDF_Enqueue(
    4853  const Scheduler_Control *scheduler,
     
    5459  Scheduler_EDF_Node *node = _Scheduler_EDF_Thread_get_node( the_thread );
    5560
    56   _RBTree_Insert( &context->Ready, &node->Node );
     61  _RBTree_Insert(
     62    &context->Ready,
     63    &node->Node,
     64    _Scheduler_EDF_Compare,
     65    false
     66  );
    5767  node->queue_state = SCHEDULER_EDF_QUEUE_STATE_YES;
    5868}
Note: See TracChangeset for help on using the changeset viewer.