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

    ra827447 r424ffe4d  
    597597    bool            unblock;
    598598
    599     new_owner = ( *operations->first )( heads );
     599    new_owner = ( *operations->surrender )( queue, heads, previous_owner );
    600600    queue->owner = new_owner;
    601601
     
    605605    {
    606606      ++new_owner->resource_count;
    607       _Thread_queue_Boost_priority( queue, new_owner );
    608     }
    609 
    610     ( *operations->extract )( queue, new_owner );
     607    }
     608
    611609    unblock = _Thread_queue_Make_ready_again( new_owner );
    612610
Note: See TracChangeset for help on using the changeset viewer.