diff options
Diffstat (limited to 'src/include/messages.h')
-rw-r--r-- | src/include/messages.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/include/messages.h b/src/include/messages.h index a6ce409f3..a5e88c267 100644 --- a/src/include/messages.h +++ b/src/include/messages.h @@ -31,25 +31,31 @@ * Evaluates to TRUE if the thread has pending messages.
*/
#define chMsgIsPendingI(tp) \
- ((tp)->p_msgqueue.p_next != (Thread *)&(tp)->p_msgqueue)
+ ((tp)->p_msgqueue.p_next != (Thread *)&(tp)->p_msgqueue)
/**
* Returns the first message in the queue.
*/
#define chMsgGetI(tp) \
- ((tp)->p_msgqueue.p_next->p_msg)
+ ((tp)->p_msgqueue.p_next->p_msg)
-t_msg chMsgSend(Thread *tp, t_msg msg);
-t_msg chMsgWait(void);
-t_msg chMsgGet(void);
-void chMsgRelease(t_msg msg);
+#ifdef __cplusplus
+extern "C" {
+#endif
+ t_msg chMsgSend(Thread *tp, t_msg msg);
+ t_msg chMsgWait(void);
+ t_msg chMsgGet(void);
+ void chMsgRelease(t_msg msg);
#ifdef CH_USE_MESSAGES_EVENT
-t_msg chMsgSendWithEvent(Thread *tp, t_msg msg, EventSource *esp);
+ t_msg chMsgSendWithEvent(Thread *tp, t_msg msg, EventSource *esp);
#endif
#ifdef CH_USE_MESSAGES_TIMEOUT
-t_msg chMsgSendTimeout(Thread *tp, t_msg msg, t_time time);
+ t_msg chMsgSendTimeout(Thread *tp, t_msg msg, t_time time);
+#endif
+#ifdef __cplusplus
+}
#endif
#endif /* CH_USE_MESSAGES */
|