19 #ifndef _RTEMS_SCORE_STATESIMPL_H 20 #define _RTEMS_SCORE_STATESIMPL_H 42 #define STATES_READY 0x00000000 45 #define STATES_WAITING_FOR_MUTEX 0x00000001 48 #define STATES_WAITING_FOR_SEMAPHORE 0x00000002 51 #define STATES_WAITING_FOR_EVENT 0x00000004 54 #define STATES_WAITING_FOR_SYSTEM_EVENT 0x00000008 57 #define STATES_WAITING_FOR_MESSAGE 0x00000010 60 #define STATES_WAITING_FOR_CONDITION_VARIABLE 0x00000020 63 #define STATES_WAITING_FOR_FUTEX 0x00000040 66 #define STATES_WAITING_FOR_BSD_WAKEUP 0x00000080 72 #define STATES_WAITING_FOR_TIME 0x00000100 75 #define STATES_WAITING_FOR_PERIOD 0x00000200 78 #define STATES_WAITING_FOR_SIGNAL 0x00000400 81 #define STATES_WAITING_FOR_BARRIER 0x00000800 84 #define STATES_WAITING_FOR_RWLOCK 0x00001000 87 #define STATES_WAITING_FOR_JOIN_AT_EXIT 0x00002000 90 #define STATES_WAITING_FOR_JOIN 0x00004000 93 #define STATES_SUSPENDED 0x00008000 96 #define STATES_WAITING_FOR_SEGMENT 0x00010000 99 #define STATES_LIFE_IS_CHANGING 0x00020000 102 #define STATES_DEBUGGER 0x08000000 107 #define STATES_INTERRUPTIBLE_BY_SIGNAL 0x10000000 110 #define STATES_WAITING_FOR_RPC_REPLY 0x20000000 113 #define STATES_ZOMBIE 0x40000000 116 #define STATES_DORMANT 0x80000000 119 #define STATES_LOCALLY_BLOCKED ( STATES_WAITING_FOR_SEGMENT | \ 120 STATES_WAITING_FOR_MESSAGE | \ 121 STATES_WAITING_FOR_SEMAPHORE | \ 122 STATES_WAITING_FOR_MUTEX | \ 123 STATES_WAITING_FOR_CONDITION_VARIABLE | \ 124 STATES_WAITING_FOR_JOIN | \ 125 STATES_WAITING_FOR_SIGNAL | \ 126 STATES_WAITING_FOR_BARRIER | \ 127 STATES_WAITING_FOR_BSD_WAKEUP | \ 128 STATES_WAITING_FOR_FUTEX | \ 129 STATES_WAITING_FOR_RWLOCK ) 132 #define STATES_BLOCKED ( STATES_LOCALLY_BLOCKED | \ 133 STATES_WAITING_FOR_TIME | \ 134 STATES_WAITING_FOR_PERIOD | \ 135 STATES_WAITING_FOR_EVENT | \ 136 STATES_WAITING_FOR_RPC_REPLY | \ 137 STATES_WAITING_FOR_SYSTEM_EVENT | \ 138 STATES_INTERRUPTIBLE_BY_SIGNAL ) 141 #define STATES_ALL_SET 0xffffffff 157 return (current_state | states_to_set);
174 return (current_state & ~states_to_clear);
RTEMS_INLINE_ROUTINE bool _States_Is_locally_blocked(States_Control the_states)
Definition: statesimpl.h:269
#define STATES_WAITING_FOR_JOIN_AT_EXIT
Definition: statesimpl.h:87
RTEMS_INLINE_ROUTINE bool _States_Is_dormant(States_Control the_states)
Definition: statesimpl.h:200
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:65
#define STATES_READY
Definition: statesimpl.h:42
Thread Execution State Information.
#define STATES_LOCALLY_BLOCKED
Definition: statesimpl.h:119
#define STATES_DORMANT
Definition: statesimpl.h:116
RTEMS_INLINE_ROUTINE bool _States_Is_suspended(States_Control the_states)
Definition: statesimpl.h:215
RTEMS_INLINE_ROUTINE bool _States_Is_interruptible_by_signal(States_Control the_states)
Definition: statesimpl.h:252
RTEMS_INLINE_ROUTINE States_Control _States_Clear(States_Control states_to_clear, States_Control current_state)
Definition: statesimpl.h:169
uint32_t States_Control
Definition: states.h:41
#define STATES_SUSPENDED
Definition: statesimpl.h:93
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_rpc_reply(States_Control the_states)
Definition: statesimpl.h:230
RTEMS_INLINE_ROUTINE bool _States_Is_ready(States_Control the_states)
Definition: statesimpl.h:185
#define STATES_WAITING_FOR_RPC_REPLY
Definition: statesimpl.h:110
#define STATES_INTERRUPTIBLE_BY_SIGNAL
Definition: statesimpl.h:107
RTEMS_INLINE_ROUTINE States_Control _States_Set(States_Control states_to_set, States_Control current_state)
Definition: statesimpl.h:152