Changeset 64939bc in rtems for cpukit/score/src/scheduleredf.c


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/src/scheduleredf.c

    r7e119990 r64939bc  
    2121#include <rtems/score/scheduleredfimpl.h>
    2222
    23 static int _Scheduler_EDF_RBTree_compare_function
    24 (
     23int _Scheduler_EDF_Compare(
    2524  const RBTree_Node* n1,
    2625  const RBTree_Node* n2
     
    4443    _Scheduler_EDF_Get_context( scheduler );
    4544
    46   _RBTree_Initialize_empty(
    47     &context->Ready,
    48     _Scheduler_EDF_RBTree_compare_function,
    49     0
    50   );
     45  _RBTree_Initialize_empty( &context->Ready );
    5146}
Note: See TracChangeset for help on using the changeset viewer.