From c09db57f37e02e8458e3bffce689774546845bef Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 28 Nov 2016 13:28:32 +0100 Subject: score: Fix thread queue context initialization Initialize the thread queue context with invalid data in debug configurations to catch missing set up steps. --- cpukit/score/src/threadtimeout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/score/src/threadtimeout.c') diff --git a/cpukit/score/src/threadtimeout.c b/cpukit/score/src/threadtimeout.c index 8297c55c4b..ea270553b2 100644 --- a/cpukit/score/src/threadtimeout.c +++ b/cpukit/score/src/threadtimeout.c @@ -31,8 +31,8 @@ void _Thread_Timeout( Watchdog_Control *watchdog ) the_thread = RTEMS_CONTAINER_OF( watchdog, Thread_Control, Timer.Watchdog ); - _Thread_queue_Context_clear_priority_updates( &queue_context ); _Thread_Wait_acquire( the_thread, &queue_context ); + _Thread_queue_Context_clear_priority_updates( &queue_context ); wait_flags = _Thread_Wait_flags_get( the_thread ); -- cgit v1.2.3