diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-10-01 17:42:47 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-10-01 17:42:47 +0000 |
commit | 3a90ab685aaae59f242ae31260e67e9125ae78cd (patch) | |
tree | 1413d1fa5a06ee7e720a1de121c537bb1ecb1c45 /src/chmsg.c | |
parent | 9a0ef300bce50901d5de3d6d722e29b79a2f9a36 (diff) | |
download | ChibiOS-3a90ab685aaae59f242ae31260e67e9125ae78cd.tar.gz ChibiOS-3a90ab685aaae59f242ae31260e67e9125ae78cd.tar.bz2 ChibiOS-3a90ab685aaae59f242ae31260e67e9125ae78cd.zip |
Preparation for AVR core support.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@27 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chmsg.c')
-rw-r--r-- | src/chmsg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/chmsg.c b/src/chmsg.c index 7b22a69b2..7a25502b0 100644 --- a/src/chmsg.c +++ b/src/chmsg.c @@ -36,7 +36,7 @@ t_msg chMsgSend(Thread *tp, t_msg msg) { chSysLock();
- enqueue(currp, &tp->p_msgqueue);
+ fifo_insert(currp, &tp->p_msgqueue);
if (tp->p_state == PRWTMSG)
chSchReadyI(tp);
currp->p_msg = msg;
@@ -66,7 +66,7 @@ t_msg chMsgSendWithEvent(Thread *tp, t_msg msg, EventSource *esp) { chSysLock();
- enqueue(currp, &tp->p_msgqueue);
+ fifo_insert(currp, &tp->p_msgqueue);
// if (tp->p_state == PRWTMSG)
// chSchReadyI(tp);
chEvtSendI(esp);
@@ -109,7 +109,7 @@ t_msg chMsgSendTimeout(Thread *tp, t_msg msg, t_time time) { chSysLock();
chVTSetI(&vt, time, unsend, currp);
- enqueue(currp, &tp->p_msgqueue);
+ fifo_insert(currp, &tp->p_msgqueue);
if (tp->p_state == PRWTMSG)
chSchReadyI(tp);
currp->p_msg = msg;
@@ -183,7 +183,7 @@ void chMsgRelease(t_msg msg) { chSysLock();
// if (!chMsgIsPendingI(currp)
- chSchWakeupI(dequeue(currp->p_msgqueue.p_next), msg);
+ chSchWakeupI(fifo_remove(&currp->p_msgqueue), msg);
chSysUnlock();
}
|