From 342708b9834096a2c8a9ad604626c82da6fb956c Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 26 Mar 2015 21:45:20 +0100 Subject: score: Return prev state in thread state set/clear --- cpukit/score/src/threadsetstate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpukit/score/src/threadsetstate.c') diff --git a/cpukit/score/src/threadsetstate.c b/cpukit/score/src/threadsetstate.c index 2769711dac..51128279b1 100644 --- a/cpukit/score/src/threadsetstate.c +++ b/cpukit/score/src/threadsetstate.c @@ -25,7 +25,7 @@ #include #include -void _Thread_Set_state( +States_Control _Thread_Set_state( Thread_Control *the_thread, States_Control state ) @@ -47,4 +47,6 @@ void _Thread_Set_state( } _Scheduler_Release( the_thread, &lock_context ); + + return previous_state; } -- cgit v1.2.3