From 3a90ab685aaae59f242ae31260e67e9125ae78cd Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 1 Oct 2007 17:42:47 +0000 Subject: Preparation for AVR core support. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@27 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chmsg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/chmsg.c') 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(); } -- cgit v1.2.3