Go to the documentation of this file.
31 #if (CH_CFG_USE_MESSAGES == TRUE) || defined(__DOXYGEN__)
ch_queue_t * next
Next in the list/queue.
static void chSysLock(void)
Enters the kernel lock state.
thread_t * chMsgPollS(void)
Poll to check for an incoming message.
#define chDbgAssert(c, r)
Condition assertion.
static void chMsgReleaseS(thread_t *tp, msg_t msg)
Releases the thread waiting on top of the messages queue.
thread_t * chMsgWaitS(void)
Suspends the thread and waits for an incoming message.
static msg_t chMsgGet(thread_t *tp)
Returns the message carried by the specified thread.
msg_t sentmsg
Thread sent message.
Structure representing a thread.
msg_t chMsgSend(thread_t *tp, msg_t msg)
Sends a message to the specified thread.
static thread_t * chMsgWait(void)
Suspends the thread and waits for an incoming message.
ch_queue_t msgqueue
Messages queue.
union ch_thread::@1 u
State-specific fields.
#define CH_STATE_SNDMSG
Sent a message, waiting answer.
void chDbgCheckClassI(void)
I-class functions context check.
static bool chMsgIsPendingI(thread_t *tp)
Evaluates to true if the thread has pending messages.
static thread_t * chMsgPoll(void)
Poll to check for an incoming message.
void chMsgRelease(thread_t *tp, msg_t msg)
Releases a sender thread specifying a response message.
uint64_t sysinterval_t
Type of time interval.
tstate_t state
Current thread state.
static void chSysUnlock(void)
Leaves the kernel lock state.
static thread_t * chMsgWaitTimeout(sysinterval_t timeout)
Suspends the thread and waits for an incoming message or a timeout to occur.
void chDbgCheckClassS(void)
S-class functions context check.
thread_t * chMsgWaitTimeoutS(sysinterval_t timeout)
Suspends the thread and waits for an incoming message or a timeout to occur.
void chSchWakeupS(thread_t *ntp, msg_t msg)
Wakes up a thread.