From e75374870375099eb097f189905be709008fb3c0 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 13 May 2016 10:21:37 +0200 Subject: score: Delete redundant thread life enums This makes it easier to add more states in the future. Update #2555. Update #2626. --- cpukit/score/include/rtems/score/thread.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'cpukit/score/include/rtems/score/thread.h') 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; /** -- cgit v1.2.3