|
Rockbox mail archiveSubject: Re: Warning to PLUGIN authorsRe: Warning to PLUGIN authors
From: Linus Nielsen Feltzing <linus_at_haxx.se>
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 :) Agreed. Linus _______________________________________________ http://cool.haxx.se/mailman/listinfo/rockbox Received on 2004-06-07 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |