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/threadinitialize.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cpukit/score/src/threadinitialize.c') diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c index a02c72958b..3fda5eaf3d 100644 --- a/cpukit/score/src/threadinitialize.c +++ b/cpukit/score/src/threadinitialize.c @@ -192,7 +192,11 @@ bool _Thread_Initialize( #if defined(RTEMS_ITRON_API) the_thread->suspend_count = 0; #endif - the_thread->Priority_node.real_priority = priority; + _Chain_Set_off_chain( &the_thread->Priority_node.Node ); + the_thread->Priority_node.real_priority = priority; + the_thread->Priority_node.current_priority = priority; + the_thread->Priority_node.waiting_to_hold = NULL; + _Chain_Initialize_empty( &the_thread->Priority_node.Inherited_priorities ); the_thread->Start.initial_priority = priority; _Thread_Set_priority( the_thread, priority ); -- cgit v1.2.3