diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-10-13 06:59:54 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-10-13 06:59:54 +0000 |
commit | 73642ca0cce31ed6982813a90b89e4de05da76cb (patch) | |
tree | 3a55ba3629daf4d5b13bec0dcee9be1e20771b3d /src/chmsg.c | |
parent | 62645922467a2c748bf081b7eefb6ad775675418 (diff) | |
download | ChibiOS-73642ca0cce31ed6982813a90b89e4de05da76cb.tar.gz ChibiOS-73642ca0cce31ed6982813a90b89e4de05da76cb.tar.bz2 ChibiOS-73642ca0cce31ed6982813a90b89e4de05da76cb.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@48 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chmsg.c')
-rw-r--r-- | src/chmsg.c | 10 |
1 files changed, 5 insertions, 5 deletions
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();
}
|