mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Add queue_peek to the kernel (written by Mike Sevakis), and use it to improve upon my previous commit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15336 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
41add08c5e
commit
1839edf64a
4 changed files with 52 additions and 3 deletions
|
@ -219,6 +219,7 @@ extern void queue_reply(struct event_queue *q, intptr_t retval);
|
|||
extern bool queue_in_queue_send(struct event_queue *q);
|
||||
#endif /* HAVE_EXTENDED_MESSAGING_AND_NAME */
|
||||
extern bool queue_empty(const struct event_queue* q);
|
||||
extern bool queue_peek(struct event_queue *q, struct queue_event *ev);
|
||||
extern void queue_clear(struct event_queue* q);
|
||||
extern void queue_remove_from_head(struct event_queue *q, long id);
|
||||
extern int queue_count(const struct event_queue *q);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue