diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-05-23 09:22:07 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-05-23 09:22:07 +0000 |
commit | 29f80283e958121dbf25ab9c279e2a95dbb36471 (patch) | |
tree | db3b22fd8ebb609ea92987c01c5d641a814c1f99 /firmware/kernel.c | |
parent | 82e6a072986aceee573a57f30157556330d59d1e (diff) |
Added queue_empty()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@658 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/kernel.c')
-rw-r--r-- | firmware/kernel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/kernel.c b/firmware/kernel.c index c6ac1fb7aa..639b73def5 100644 --- a/firmware/kernel.c +++ b/firmware/kernel.c @@ -94,6 +94,11 @@ void queue_post(struct event_queue *q, int id, void *data) set_irq_level(oldlevel); } +bool queue_empty(struct event_queue* q) +{ + return ( q->read == q->write ); +} + /**************************************************************************** * Timer tick |