Rockbox mail archiveSubject: Re: Warning to PLUGIN authors
Re: Warning to PLUGIN authors
From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Mon, 07 Jun 2004 07:27:29 +0200
> One could ask why it yield()s in get_button(true) in the same vain, it
> just seems the simple way to protect the mp3 thread from bad plugins.
The reason it yields in that case is simply because it is instructed to
not return until there is a button event in the queue, and busy waiting
is not an option in this multithreaded system.
With the 'false' argument, it returns immediately regardless, so there
is no need to yield.
> As I say, the solution is uber-simple, once you realise what the problem
> is, so no biggie :)
Received on 2004-06-07