Changeset 7a9288fe in rtems


Ignore:
Timestamp:
Aug 6, 2012, 5:46:27 PM (7 years ago)
Author:
Andreas Heinig <andreas.heinig@…>
Branches:
4.11, master
Children:
2aff1f08
Parents:
6c5d6c59
git-author:
Andreas Heinig <andreas.heinig@…> (08/06/12 17:46:27)
git-committer:
Gedare Bloom <gedare@…> (08/06/12 17:46:27)
Message:

PR2069: [CBS Scheduler] Memory leak and enqueue problem

Due to the fact that CBS extends the EDF scheduler, most parts of EDF are
reused. One part is the allocation of the per-thread data. However, the CBS
per-thread structure defines a further element (while including the rest of
Scheduler_EDF_Per_thread)

Location:
cpukit/score
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/Makefile.am

    r6c5d6c59 r7a9288fe  
    239239## SCHEDULERCBS_C_FILES
    240240libscore_a_SOURCES += src/schedulercbs.c \
     241    src/schedulercbsallocate.c \
    241242    src/schedulercbsattachthread.c \
    242243    src/schedulercbscleanup.c \
  • cpukit/score/include/rtems/score/schedulercbs.h

    r6c5d6c59 r7a9288fe  
    5050    _Scheduler_EDF_Block,            /* block entry point */ \
    5151    _Scheduler_CBS_Unblock,          /* unblock entry point */ \
    52     _Scheduler_EDF_Allocate,         /* allocate entry point */ \
     52    _Scheduler_CBS_Allocate,         /* allocate entry point */ \
    5353    _Scheduler_EDF_Free,             /* free entry point */ \
    5454    _Scheduler_EDF_Update,           /* update entry point */ \
     
    316316);
    317317
     318/**
     319 *  @brief Scheduler CBS Allocate
     320 *
     321 *  This routine allocates CBS specific information of @a the_thread.
     322 *
     323 *  @param[in] the_thread is the thread the scheduler is allocating
     324 *             management memory for.
     325 */
     326void *_Scheduler_CBS_Allocate(
     327  Thread_Control      *the_thread
     328);
    318329#ifdef __cplusplus
    319330}
Note: See TracChangeset for help on using the changeset viewer.