From c21c5912a86e752dc3a65101385838291d8e0536 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 14 May 2014 11:11:05 +0200 Subject: score: Add STATES_RESTARTING Use separate state for thread restart. --- cpukit/score/src/threadrestart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/score/src/threadrestart.c') diff --git a/cpukit/score/src/threadrestart.c b/cpukit/score/src/threadrestart.c index 9cf2a85165..b483298647 100644 --- a/cpukit/score/src/threadrestart.c +++ b/cpukit/score/src/threadrestart.c @@ -224,7 +224,7 @@ static void _Thread_Start_life_change( the_thread->budget_callout = the_thread->Start.budget_callout; the_thread->real_priority = priority; - _Thread_Set_transient( the_thread ); + _Thread_Set_state( the_thread, STATES_RESTARTING ); _Thread_queue_Extract_with_proxy( the_thread ); _Watchdog_Remove( &the_thread->Timer ); _Scheduler_Set_priority_if_higher( scheduler, the_thread, priority ); -- cgit v1.2.3