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