ChibiOS/RT Architecture - Reference Manual - Guides |
Messages macros and structures. More...
Go to the source code of this file.
Defines | |
#define | chMsgIsPendingI(tp) ((tp)->p_msgqueue.p_next != (Thread *)&(tp)->p_msgqueue) |
Evaluates to TRUE if the thread has pending messages. | |
#define | chMsgGetI(tp) ((tp)->p_msgqueue.p_next->p_msg) |
Returns the first message in the queue. | |
Functions | |
msg_t | chMsgSend (Thread *tp, msg_t msg) |
Sends a message to the specified thread. | |
msg_t | chMsgWait (void) |
Suspends the thread and waits for an incoming message. | |
msg_t | chMsgGet (void) |
Returns the next message in the queue. | |
void | chMsgRelease (msg_t msg) |
Releases the thread waiting on top of the messages queue. |
Messages macros and structures.
Definition in file chmsg.h.