dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: Warning to PLUGIN authors

Re: Warning to PLUGIN authors

From: Linus Nielsen Feltzing <>
Date: Mon, 07 Jun 2004 07:27:29 +0200

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



Received on 2004-06-07

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy