31 #if (CH_CFG_USE_MESSAGES == TRUE) || defined(__DOXYGEN__) #define CH_STATE_SNDMSG
Sent a message, waiting answer.
static void chMsgReleaseS(thread_t *tp, msg_t msg)
Releases the thread waiting on top of the messages queue.
threads_queue_t msgqueue
Messages queue.
static msg_t chMsgGet(thread_t *tp)
Returns the message carried by the specified thread.
thread_t * next
Next in the list/queue.
msg_t chMsgSend(thread_t *tp, msg_t msg)
Sends a message to the specified thread.
msg_t sentmsg
Thread sent message.
static bool chMsgIsPendingI(thread_t *tp)
Evaluates to true if the thread has pending messages.
thread_t * chMsgWait(void)
Suspends the thread and waits for an incoming message.
void chMsgRelease(thread_t *tp, msg_t msg)
Releases a sender thread specifying a response message.
tstate_t state
Current thread state.
union ch_thread::@0 u
State-specific fields.
void chDbgCheckClassI(void)
I-class functions context check.
void chSchWakeupS(thread_t *ntp, msg_t msg)
Wakes up a thread.
#define chDbgAssert(c, r)
Condition assertion.
void chDbgCheckClassS(void)
S-class functions context check.
Structure representing a thread.