1
0
Fork 0
forked from len0rd/rockbox

Merge functionality of wakeups and semaphores-- fewer APIs and object types. semaphore_wait takes a timeout now so codecs and plugins have to be made incompatible. Don't make semaphores for targets not using them.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29492 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2011-03-02 08:49:38 +00:00
parent 05e180a130
commit 12375d1d3a
38 changed files with 294 additions and 311 deletions

View file

@ -211,7 +211,7 @@ static void mad_synth_thread(void)
{
while(1) {
ci->semaphore_release(&synth_done_sem);
ci->semaphore_wait(&synth_pending_sem);
ci->semaphore_wait(&synth_pending_sem, TIMEOUT_BLOCK);
if(die)
break;
@ -224,7 +224,7 @@ static void mad_synth_thread(void)
* synthesized */
static inline void mad_synth_thread_wait_pcm(void)
{
ci->semaphore_wait(&synth_done_sem);
ci->semaphore_wait(&synth_done_sem, TIMEOUT_BLOCK);
}
/* increment the done semaphore - used after a wait for idle to preserve the