From b50468c6bff4e770aa038b9f87e514a2a1da906b Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Thu, 21 Dec 2017 13:04:50 -0500 Subject: score: add Inherited_priorities priority queue and functions Adds enqueue, dequeue, requeue, evaluate, and release functions for the thread priority node priority queue of inherited priorities. Add calls to these functions as needed to maintain the priority queue due to blocking, unblocking, and priority changes. Closes #3359. --- cpukit/score/src/threadchangepriority.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpukit/score/src/threadchangepriority.c') diff --git a/cpukit/score/src/threadchangepriority.c b/cpukit/score/src/threadchangepriority.c index d109dd9ec6..c3dc3ffa80 100644 --- a/cpukit/score/src/threadchangepriority.c +++ b/cpukit/score/src/threadchangepriority.c @@ -88,8 +88,10 @@ void _Thread_Change_priority( * Do not bother recomputing all the priority related information if * we are not REALLY changing priority. */ - if ( the_thread->Priority_node.current_priority != new_priority ) + if ( the_thread->Priority_node.current_priority != new_priority ) { _Thread_Set_priority( the_thread, new_priority ); + _Thread_Requeue_priority_node( the_thread ); + } _ISR_Disable( level ); -- cgit v1.2.3