Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Warning to PLUGIN authors
From: Linus Nielsen Feltzing (linus_at_haxx.se)
Date: 2004-06-07


BlueChip wrote:
> 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 :)

Agreed.

Linus

_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa