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:
parent
82e6a07298
commit
29f80283e9
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue