aboutsummaryrefslogtreecommitdiffstats
path: root/os/various/ch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'os/various/ch.cpp')
-rw-r--r--os/various/ch.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/os/various/ch.cpp b/os/various/ch.cpp
index a3507868d..2b23768d7 100644
--- a/os/various/ch.cpp
+++ b/os/various/ch.cpp
@@ -1,5 +1,6 @@
/*
- ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010 Giovanni Di Sirio.
+ ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
+ 2011 Giovanni Di Sirio.
This file is part of ChibiOS/RT.
@@ -130,19 +131,19 @@ namespace chibios_rt {
return chMsgSend(thread_ref, msg);
}
- msg_t BaseThread::WaitMessage(void) {
+ Thread *BaseThread::WaitMessage(void) {
return chMsgWait();
}
- msg_t BaseThread::GetMessage(void) {
+ msg_t BaseThread::GetMessage(Thread* tp) {
- return chMsgGet();
+ return chMsgGet(tp);
}
- void BaseThread::ReleaseMessage(msg_t msg) {
+ void BaseThread::ReleaseMessage(Thread* tp, msg_t msg) {
- chMsgRelease(msg);
+ chMsgRelease(tp, msg);
}
bool BaseThread::IsPendingMessage(void) {