1
0
Fork 0
forked from len0rd/rockbox

Added queue_empty()

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@658 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-05-23 09:22:07 +00:00
parent 82e6a07298
commit 29f80283e9
2 changed files with 8 additions and 0 deletions

View file

@ -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