Ignore:
Timestamp:
Aug 11, 2016, 8:26:57 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
55faa44
Parents:
a827447
git-author:
Sebastian Huber <sebastian.huber@…> (08/11/16 08:26:57)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/11/16 09:13:42)
Message:

score: Introduce thread queue surrender operation

This is an optimization for _Thread_queue_Surrender(). It helps to
encapsulate the priority boosting in the priority inheritance thread
queue operations.

File:
1 edited

Legend:

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

    ra827447 r424ffe4d  
    947947}
    948948
    949 /**
    950  * @brief Boosts the priority of the thread if threads of another scheduler
    951  * instance are enqueued on the thread queue.
    952  *
    953  * The thread queue must use the priority waiting discipline.
    954  *
    955  * @param[in] queue The actual thread queue.
    956  * @param[in] the_thread The thread to boost the priority if necessary.
    957  */
    958 #if defined(RTEMS_SMP)
    959 void _Thread_queue_Boost_priority(
    960   Thread_queue_Queue *queue,
    961   Thread_Control     *the_thread
    962 );
    963 #else
    964 RTEMS_INLINE_ROUTINE void _Thread_queue_Boost_priority(
    965   Thread_queue_Queue *queue,
    966   Thread_Control     *the_thread
    967 )
    968 {
    969   (void) queue;
    970   (void) the_thread;
    971 }
    972 #endif
    973 
    974949#if defined(RTEMS_MULTIPROCESSING)
    975950void _Thread_queue_MP_callout_do_nothing(
Note: See TracChangeset for help on using the changeset viewer.