Changeset dafa5d88 in rtems for cpukit/score/src/threadqops.c


Ignore:
Timestamp:
Sep 3, 2015, 8:27:16 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
e1769f27
Parents:
3995e6d
git-author:
Sebastian Huber <sebastian.huber@…> (09/03/15 08:27:16)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/04/15 11:26:17)
Message:

score: Implement priority boosting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/threadqops.c

    r3995e6d rdafa5d88  
    294294}
    295295
     296#if defined(RTEMS_SMP)
     297void _Thread_queue_Boost_priority(
     298  Thread_queue_Queue *queue,
     299  Thread_Control     *the_thread
     300)
     301{
     302  Thread_queue_Heads *heads = queue->heads;
     303
     304  if (
     305    heads != NULL
     306      && (
     307        !_Chain_Has_only_one_node( &heads->Heads.Fifo )
     308          || _RBTree_Is_empty(
     309            &_Thread_queue_Priority_queue( heads, the_thread )->Queue
     310          )
     311      )
     312  ) {
     313    _Thread_Raise_priority( the_thread, PRIORITY_PSEUDO_ISR );
     314  }
     315}
     316#endif
     317
    296318const Thread_queue_Operations _Thread_queue_Operations_default = {
    297319  .priority_change = _Thread_queue_Do_nothing_priority_change,
Note: See TracChangeset for help on using the changeset viewer.