summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/thread.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-13 10:21:37 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-20 07:49:36 +0200
commite75374870375099eb097f189905be709008fb3c0 (patch)
treeb987dc043c81586cfea54213d76c607f81cd5575 /cpukit/score/include/rtems/score/thread.h
parentpsxclassic01: Assume correct pthread_detach() (diff)
downloadrtems-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 '')
-rw-r--r--cpukit/score/include/rtems/score/thread.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h
index b8e0e00ae1..d69967bde8 100644
--- a/cpukit/score/include/rtems/score/thread.h
+++ b/cpukit/score/include/rtems/score/thread.h
@@ -518,16 +518,15 @@ typedef struct {
* The thread life states are orthogonal to the thread states used for
* synchronization primitives and blocking operations. They reflect the state
* changes triggered with thread restart and delete requests.
+ *
+ * The individual state values must be a power of two to allow use of bit
+ * operations to manipulate and evaluate the thread life state.
*/
typedef enum {
THREAD_LIFE_NORMAL = 0x0,
THREAD_LIFE_PROTECTED = 0x1,
THREAD_LIFE_RESTARTING = 0x2,
- THREAD_LIFE_PROTECTED_RESTARTING = 0x3,
- THREAD_LIFE_TERMINATING = 0x4,
- THREAD_LIFE_PROTECTED_TERMINATING = 0x5,
- THREAD_LIFE_RESTARTING_TERMINATING = 0x6,
- THREAD_LIFE_PROTECTED_RESTARTING_TERMINATING = 0x7
+ THREAD_LIFE_TERMINATING = 0x4
} Thread_Life_state;
/**