mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
Update sync queues to use a statically allocated return value in order to facilitate upcoming COP updates.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12881 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a83a94ea9c
commit
0caf3b8cae
3 changed files with 75 additions and 79 deletions
|
|
@ -57,18 +57,13 @@ struct event
|
|||
};
|
||||
|
||||
#ifdef HAVE_EXTENDED_MESSAGING_AND_NAME
|
||||
struct queue_sender
|
||||
{
|
||||
struct thread_entry *thread;
|
||||
intptr_t retval;
|
||||
};
|
||||
|
||||
struct queue_sender_list
|
||||
{
|
||||
/* If non-NULL, there is a thread waiting for the corresponding event */
|
||||
struct queue_sender *senders[QUEUE_LENGTH];
|
||||
/* Must be statically allocated to put in non-cached ram. */
|
||||
struct thread_entry *senders[QUEUE_LENGTH];
|
||||
/* Send info for last message dequeued or NULL if replied or not sent */
|
||||
struct queue_sender *curr_sender;
|
||||
struct thread_entry *curr_sender;
|
||||
};
|
||||
#endif /* HAVE_EXTENDED_MESSAGING_AND_NAME */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue