aboutsummaryrefslogtreecommitdiffstats
path: root/os/various/ch.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'os/various/ch.hpp')
-rw-r--r--os/various/ch.hpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/os/various/ch.hpp b/os/various/ch.hpp
index 487f03e75..d48dc30fe 100644
--- a/os/various/ch.hpp
+++ b/os/various/ch.hpp
@@ -198,26 +198,27 @@ namespace chibios_rt {
msg_t SendMessage(msg_t msg);
/**
- * @brief Waits for a message and returns it.
+ * @brief Waits for a message.
*
- * @return The incoming message.
+ * @return The sebder thread.
*/
- static msg_t WaitMessage(void);
+ static Thread *WaitMessage(void);
/**
* @brief Returns an enqueued message or @p NULL.
*
+ * @param[in] tp the sender thread
* @return The incoming message.
- * @retval NULL No incoming message.
*/
- static msg_t GetMessage(void);
+ static msg_t GetMessage(Thread* tp);
/**
* @brief Releases the next message in queue with a reply.
*
+ * @param[in] tp the sender thread
* @param[in] msg the answer message
*/
- static void ReleaseMessage(msg_t msg);
+ static void ReleaseMessage(Thread* tp, msg_t msg);
/**
* @brief Returns true if there is at least one message in queue.