diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-03-26 21:45:20 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-04-08 11:48:12 +0200 |
commit | 342708b9834096a2c8a9ad604626c82da6fb956c (patch) | |
tree | 95fd2faaeff1cb270d1df8e469145357139d851b /cpukit/score/src/threadsetstate.c | |
parent | score: Simplify _Thread_Set_state() (diff) | |
download | rtems-342708b9834096a2c8a9ad604626c82da6fb956c.tar.bz2 |
score: Return prev state in thread state set/clear
Diffstat (limited to 'cpukit/score/src/threadsetstate.c')
-rw-r--r-- | cpukit/score/src/threadsetstate.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <rtems/score/assert.h> #include <rtems/score/schedulerimpl.h> -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; } |