1
0
Fork 0
forked from len0rd/rockbox

Fix problem with recording screen creep and bag a bigfoot. Voice clips aren't long enough now to untrigger the thread boost that was supposed to be applied to the codec thread. The voice thread was needlessly boosting the codec thread and leaving it boosted which explains the encoders' ability to flood the output buffer when everything else was stopped in its tracks. Check which thread is calling pcmbuf_under_watermark and only initiate the boost when it's the codec thread. Always return the codec thread to its usual priority in pcmbuf_play_stop.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12649 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2007-03-06 20:32:13 +00:00
parent bf133996d5
commit b425de71df
3 changed files with 40 additions and 20 deletions

View file

@ -776,6 +776,11 @@ int thread_get_priority(struct thread_entry *thread)
}
#endif
struct thread_entry * thread_get_current(void)
{
return cores[CURRENT_CORE].running;
}
void init_threads(void)
{
unsigned int core = CURRENT_CORE;