From 73642ca0cce31ed6982813a90b89e4de05da76cb Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 13 Oct 2007 06:59:54 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@48 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chmsg.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/chmsg.c') diff --git a/src/chmsg.c b/src/chmsg.c index 7a25502b0..4140e3165 100644 --- a/src/chmsg.c +++ b/src/chmsg.c @@ -40,7 +40,7 @@ t_msg chMsgSend(Thread *tp, t_msg msg) { if (tp->p_state == PRWTMSG) chSchReadyI(tp); currp->p_msg = msg; - chSchGoSleepI(PRSNDMSG); + chSchGoSleepS(PRSNDMSG); msg = currp->p_rdymsg; chSysUnlock(); @@ -71,7 +71,7 @@ t_msg chMsgSendWithEvent(Thread *tp, t_msg msg, EventSource *esp) { // chSchReadyI(tp); chEvtSendI(esp); currp->p_msg = msg; - chSchGoSleepI(PRSNDMSG); + chSchGoSleepS(PRSNDMSG); msg = currp->p_rdymsg; chSysUnlock(); @@ -113,7 +113,7 @@ t_msg chMsgSendTimeout(Thread *tp, t_msg msg, t_time time) { if (tp->p_state == PRWTMSG) chSchReadyI(tp); currp->p_msg = msg; - chSchGoSleepI(PRSNDMSG); + chSchGoSleepS(PRSNDMSG); msg = currp->p_rdymsg; if (vt.vt_func) chVTResetI(&vt); @@ -138,7 +138,7 @@ t_msg chMsgWait(void) { chSysLock(); if (!chMsgIsPendingI(currp)) - chSchGoSleepI(PRWTMSG); + chSchGoSleepS(PRWTMSG); msg = chMsgGetI(currp); chSysUnlock(); @@ -183,7 +183,7 @@ void chMsgRelease(t_msg msg) { chSysLock(); // if (!chMsgIsPendingI(currp) - chSchWakeupI(fifo_remove(&currp->p_msgqueue), msg); + chSchWakeupS(fifo_remove(&currp->p_msgqueue), msg); chSysUnlock(); } -- cgit v1.2.3