mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Add a complete priority inheritance implementation to the scheduler (all mutex ownership and queue_send calls are inheritable). Priorities are differential so that dispatch depends on the runnable range of priorities. Codec priority can therefore be raised in small steps (pcmbuf updated to enable). Simplify the kernel functions to ease implementation and use the same kernel.c for both sim and target (I'm tired of maintaining two ;_). 1) Not sure if a minor audio break at first buffering issue will exist on large-sector disks (the main mutex speed issue was genuinely resolved earlier). At this point it's best dealt with at the buffering level. It seems a larger filechunk could be used again. 2) Perhaps 64-bit sims will have some minor issues (finicky) but a backroll of the code of concern there is a 5-minute job. All kernel objects become incompatible so a full rebuild and update is needed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16791 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bc2f8fd8f3
commit
27cf677339
36 changed files with 3271 additions and 3250 deletions
|
@ -714,12 +714,14 @@ bool audio_thread_init(void)
|
|||
/* Start the audio thread */
|
||||
audio_str.hdr.q = &audio_str_queue;
|
||||
rb->queue_init(audio_str.hdr.q, false);
|
||||
rb->queue_enable_queue_send(audio_str.hdr.q, &audio_str_queue_send);
|
||||
|
||||
/* One-up on the priority since the core DSP over-yields internally */
|
||||
audio_str.thread = rb->create_thread(
|
||||
audio_thread, audio_stack, audio_stack_size, 0,
|
||||
"mpgaudio" IF_PRIO(,PRIORITY_PLAYBACK-1) IF_COP(, CPU));
|
||||
"mpgaudio" IF_PRIO(,PRIORITY_PLAYBACK-4) IF_COP(, CPU));
|
||||
|
||||
rb->queue_enable_queue_send(audio_str.hdr.q, &audio_str_queue_send,
|
||||
audio_str.thread);
|
||||
|
||||
if (audio_str.thread == NULL)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue