diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-13 10:21:37 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-20 07:49:36 +0200 |
commit | e75374870375099eb097f189905be709008fb3c0 (patch) | |
tree | b987dc043c81586cfea54213d76c607f81cd5575 /cpukit/score/include/rtems/score/threadimpl.h | |
parent | psxclassic01: Assume correct pthread_detach() (diff) | |
download | rtems-e75374870375099eb097f189905be709008fb3c0.tar.bz2 |
score: Delete redundant thread life enums
This makes it easier to add more states in the future.
Update #2555.
Update #2626.
Diffstat (limited to 'cpukit/score/include/rtems/score/threadimpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/threadimpl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpukit/score/include/rtems/score/threadimpl.h index 1ea49dd60e..3fdc2e8615 100644 --- a/cpukit/score/include/rtems/score/threadimpl.h +++ b/cpukit/score/include/rtems/score/threadimpl.h @@ -943,7 +943,8 @@ RTEMS_INLINE_ROUTINE bool _Thread_Is_life_changing( Thread_Life_state life_state ) { - return ( life_state & THREAD_LIFE_RESTARTING_TERMINATING ) != 0; + return ( life_state + & ( THREAD_LIFE_RESTARTING | THREAD_LIFE_TERMINATING ) ) != 0; } /** |