diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-12-23 16:02:07 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-01-11 08:16:27 +0100 |
commit | 9a448aabe65f2b85c7721098a3f68f0a99a6728b (patch) | |
tree | b513a68d98d7b9fa8dcabd914c8aeee6246d2e61 /cpukit/score/src/threadwaitgetid.c | |
parent | score: Delete STATES_WAITING_FOR_BUFFER (diff) | |
download | rtems-9a448aabe65f2b85c7721098a3f68f0a99a6728b.tar.bz2 |
score: Add STATES_THREAD_QUEUE_WITH_IDENTIFIER
Add thread state bit to identify thread queues that are embedded in an
object with identifier.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/src/threadwaitgetid.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/cpukit/score/src/threadwaitgetid.c b/cpukit/score/src/threadwaitgetid.c index 6c12fd6d3e..9f17250353 100644 --- a/cpukit/score/src/threadwaitgetid.c +++ b/cpukit/score/src/threadwaitgetid.c @@ -18,14 +18,6 @@ #include <rtems/score/threadimpl.h> -#define THREAD_WAIT_QUEUE_OBJECT_STATES \ - ( STATES_WAITING_FOR_BARRIER \ - | STATES_WAITING_FOR_CONDITION_VARIABLE \ - | STATES_WAITING_FOR_MESSAGE \ - | STATES_WAITING_FOR_MUTEX \ - | STATES_WAITING_FOR_RWLOCK \ - | STATES_WAITING_FOR_SEMAPHORE ) - Objects_Id _Thread_Wait_get_id( const Thread_Control *the_thread ) { States_Control current_state; @@ -38,7 +30,7 @@ Objects_Id _Thread_Wait_get_id( const Thread_Control *the_thread ) } #endif - if ( ( current_state & THREAD_WAIT_QUEUE_OBJECT_STATES ) != 0 ) { + if ( ( current_state & STATES_THREAD_QUEUE_WITH_IDENTIFIER ) != 0 ) { const Thread_queue_Object *queue_object; queue_object = THREAD_QUEUE_QUEUE_TO_OBJECT( the_thread->Wait.queue ); |