38#ifndef _RTEMS_SCORE_STATESIMPL_H
39#define _RTEMS_SCORE_STATESIMPL_H
62#define STATES_READY 0x00000000
65#define STATES_WAITING_FOR_MUTEX 0x00000001
68#define STATES_WAITING_FOR_SEMAPHORE 0x00000002
71#define STATES_WAITING_FOR_EVENT 0x00000004
74#define STATES_WAITING_FOR_SYSTEM_EVENT 0x00000008
77#define STATES_WAITING_FOR_MESSAGE 0x00000010
80#define STATES_WAITING_FOR_CONDITION_VARIABLE 0x00000020
83#define STATES_WAITING_FOR_FUTEX 0x00000040
86#define STATES_WAITING_FOR_BSD_WAKEUP 0x00000080
92#define STATES_WAITING_FOR_TIME 0x00000100
95#define STATES_WAITING_FOR_PERIOD 0x00000200
98#define STATES_WAITING_FOR_SIGNAL 0x00000400
101#define STATES_WAITING_FOR_BARRIER 0x00000800
104#define STATES_WAITING_FOR_RWLOCK 0x00001000
107#define STATES_WAITING_FOR_JOIN_AT_EXIT 0x00002000
110#define STATES_WAITING_FOR_JOIN 0x00004000
113#define STATES_SUSPENDED 0x00008000
116#define STATES_WAITING_FOR_SEGMENT 0x00010000
119#define STATES_LIFE_IS_CHANGING 0x00020000
122#define STATES_DEBUGGER 0x08000000
127#define STATES_INTERRUPTIBLE_BY_SIGNAL 0x10000000
130#define STATES_WAITING_FOR_RPC_REPLY 0x20000000
133#define STATES_ZOMBIE 0x40000000
136#define STATES_DORMANT 0x80000000
139#define STATES_LOCALLY_BLOCKED ( STATES_WAITING_FOR_SEGMENT | \
140 STATES_WAITING_FOR_MESSAGE | \
141 STATES_WAITING_FOR_SEMAPHORE | \
142 STATES_WAITING_FOR_MUTEX | \
143 STATES_WAITING_FOR_CONDITION_VARIABLE | \
144 STATES_WAITING_FOR_JOIN | \
145 STATES_WAITING_FOR_SIGNAL | \
146 STATES_WAITING_FOR_BARRIER | \
147 STATES_WAITING_FOR_BSD_WAKEUP | \
148 STATES_WAITING_FOR_FUTEX | \
149 STATES_WAITING_FOR_RWLOCK )
152#define STATES_BLOCKED ( STATES_LOCALLY_BLOCKED | \
153 STATES_WAITING_FOR_TIME | \
154 STATES_WAITING_FOR_PERIOD | \
155 STATES_WAITING_FOR_EVENT | \
156 STATES_WAITING_FOR_RPC_REPLY | \
157 STATES_WAITING_FOR_SYSTEM_EVENT | \
158 STATES_INTERRUPTIBLE_BY_SIGNAL )
161#define STATES_ALL_SET 0xffffffff
179 return (current_state | states_to_set);
198 return (current_state & ~states_to_clear);
212static inline bool _States_Is_ready (
230static inline bool _States_Is_dormant (
248static inline bool _States_Is_suspended (
266static inline bool _States_Is_waiting_for_rpc_reply (
284static inline bool _States_Is_waiting_for_join_at_exit(
302static inline bool _States_Is_interruptible_by_signal (
323static inline bool _States_Is_locally_blocked (
This header file provides basic definitions used by the API and the implementation.
#define STATES_INTERRUPTIBLE_BY_SIGNAL
Definition: statesimpl.h:127
#define STATES_LOCALLY_BLOCKED
Definition: statesimpl.h:139
#define STATES_WAITING_FOR_JOIN_AT_EXIT
Definition: statesimpl.h:107
#define STATES_WAITING_FOR_RPC_REPLY
Definition: statesimpl.h:130
#define STATES_READY
Definition: statesimpl.h:62
#define STATES_DORMANT
Definition: statesimpl.h:136
#define STATES_SUSPENDED
Definition: statesimpl.h:113
uint32_t States_Control
Definition: states.h:65
This header file provides interfaces of the Thread States which are used by the implementation and th...