aboutsummaryrefslogtreecommitdiffstats
path: root/src/chmsg.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-11-19 15:57:39 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-11-19 15:57:39 +0000
commit15a9943b535f3f5e7c867d35d6da230504db86bb (patch)
tree3fea27e7cbf5b9455bfbad0efbbe16a875703cef /src/chmsg.c
parentba20b5cd23ae74c1f4f925b7b8d3a84dbd42fd9e (diff)
downloadChibiOS-15a9943b535f3f5e7c867d35d6da230504db86bb.tar.gz
ChibiOS-15a9943b535f3f5e7c867d35d6da230504db86bb.tar.bz2
ChibiOS-15a9943b535f3f5e7c867d35d6da230504db86bb.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@99 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chmsg.c')
-rw-r--r--src/chmsg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/chmsg.c b/src/chmsg.c
index b70ebbcfe..51675e0fe 100644
--- a/src/chmsg.c
+++ b/src/chmsg.c
@@ -39,7 +39,7 @@ t_msg chMsgSend(Thread *tp, t_msg msg) {
fifo_insert(currp, &tp->p_msgqueue);
currp->p_msg = msg;
if (tp->p_state == PRWTMSG)
- chSchReadyI(tp);
+ chSchReadyI(tp, RDY_OK);
chSchGoSleepS(PRSNDMSG);
msg = currp->p_rdymsg;
@@ -68,7 +68,7 @@ t_msg chMsgSendWithEvent(Thread *tp, t_msg msg, EventSource *esp) {
fifo_insert(currp, &tp->p_msgqueue);
// if (tp->p_state == PRWTMSG)
-// chSchReadyI(tp);
+// chSchReadyI(tp, RDY_OK);
chEvtSendI(esp);
currp->p_msg = msg;
chSchGoSleepS(PRSNDMSG);
@@ -86,7 +86,7 @@ static void wakeup(void *p) {
if (((Thread *)p)->p_state != PRSNDMSG)
chDbgPanic("chmsg.c, wakeup()\r\n");
#endif
- chSchReadyI(dequeue(p))->p_rdymsg = RDY_TIMEOUT;
+ chSchReadyI(dequeue(p), RDY_TIMEOUT);
}
/**
@@ -113,7 +113,7 @@ t_msg chMsgSendTimeout(Thread *tp, t_msg msg, t_time time) {
chVTSetI(&vt, time, wakeup, currp);
fifo_insert(currp, &tp->p_msgqueue);
if (tp->p_state == PRWTMSG)
- chSchReadyI(tp);
+ chSchReadyI(tp, RDY_OK);
currp->p_msg = msg;
chSchGoSleepS(PRSNDMSG);
msg = currp->p_rdymsg;