summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/include/rtems/score/states.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/score/include/rtems/score/states.h')
-rw-r--r--c/src/exec/score/include/rtems/score/states.h44
1 files changed, 23 insertions, 21 deletions
diff --git a/c/src/exec/score/include/rtems/score/states.h b/c/src/exec/score/include/rtems/score/states.h
index 3f7c4a7e99..a120cadae3 100644
--- a/c/src/exec/score/include/rtems/score/states.h
+++ b/c/src/exec/score/include/rtems/score/states.h
@@ -32,26 +32,28 @@ typedef unsigned32 States_Control;
* be used to compose and manipulate a thread's state.
*/
-#define STATES_ALL_SET 0xffff /* all states */
-#define STATES_READY 0x0000 /* ready to run */
-#define STATES_DORMANT 0x0001 /* created but not started */
-#define STATES_SUSPENDED 0x0002 /* waiting to be resumed */
-#define STATES_TRANSIENT 0x0004 /* thread in transition */
-#define STATES_DELAYING 0x0008 /* wait for timeout */
-#define STATES_WAITING_FOR_BUFFER 0x0010 /* wait for partition buffer */
-#define STATES_WAITING_FOR_SEGMENT 0x0020 /* wait for region segment */
-#define STATES_WAITING_FOR_MESSAGE 0x0040 /* wait for message */
-#define STATES_WAITING_FOR_EVENT 0x0080 /* wait for event */
-#define STATES_WAITING_FOR_SEMAPHORE 0x0100 /* wait for semaphore */
-#define STATES_WAITING_FOR_MUTEX 0x0200 /* wait for mutex */
-#define STATES_WAITING_FOR_TIME 0x0400 /* wait for specific TOD */
-#define STATES_WAITING_FOR_RPC_REPLY 0x0800 /* wait for rpc reply */
-#define STATES_WAITING_FOR_PERIOD 0x1000 /* rate monotonic delay */
-
-#define STATES_LOCALLY_BLOCKED ( STATES_WAITING_FOR_BUFFER | \
- STATES_WAITING_FOR_SEGMENT | \
- STATES_WAITING_FOR_MESSAGE | \
- STATES_WAITING_FOR_MUTEX | \
+#define STATES_ALL_SET 0xffff /* all states */
+#define STATES_READY 0x0000 /* ready to run */
+#define STATES_DORMANT 0x0001 /* created not started */
+#define STATES_SUSPENDED 0x0002 /* waiting for resume */
+#define STATES_TRANSIENT 0x0004 /* thread in transition */
+#define STATES_DELAYING 0x0008 /* wait for timeout */
+#define STATES_WAITING_FOR_TIME 0x0010 /* wait for TOD */
+#define STATES_WAITING_FOR_BUFFER 0x0020
+#define STATES_WAITING_FOR_SEGMENT 0x0040
+#define STATES_WAITING_FOR_MESSAGE 0x0080
+#define STATES_WAITING_FOR_EVENT 0x0100
+#define STATES_WAITING_FOR_SEMAPHORE 0x0200
+#define STATES_WAITING_FOR_MUTEX 0x0400
+#define STATES_WAITING_FOR_CONDITION_VARIABLE 0x0800
+#define STATES_WAITING_FOR_RPC_REPLY 0x1000
+#define STATES_WAITING_FOR_PERIOD 0x2000
+
+#define STATES_LOCALLY_BLOCKED ( STATES_WAITING_FOR_BUFFER | \
+ STATES_WAITING_FOR_SEGMENT | \
+ STATES_WAITING_FOR_MESSAGE | \
+ STATES_WAITING_FOR_MUTEX | \
+ STATES_WAITING_FOR_CONDITION_VARIABLE | \
STATES_WAITING_FOR_SEMAPHORE )
#define STATES_WAITING_ON_THREAD_QUEUE \
@@ -342,7 +344,7 @@ STATIC INLINE boolean _States_Are_set (
States_Control mask
);
-#include <rtems/core/states.inl>
+#include <rtems/score/states.inl>
#ifdef __cplusplus
}