Rockbox mail archiveSubject: RE: Optimizing plugin-shutdowns using threads
RE: Optimizing plugin-shutdowns using threads
From: Jonas Hellesøe Nielsen <jonas_hn_at_hotmail.com>
Date: Sat, 17 Mar 2007 13:17:39 +0100
> Date: Sat, 17 Mar 2007 23:14:04 +1100> From: jdgordy_at_gmail.com> To: rockbox-dev_at_cool.haxx.se> Subject: Re: Optimizing plugin-shutdowns using threads> > > >Timo Horstschäfer wrote:> > >I think some kind of a disk write-queue would achieve the same.> > >Or maybe just a global write buffer, that flushes on every disk spin up.> >> > Thats surely a better idea, and i think it could be used in general, not> > only in plugins. Would it be hard to code?> >> > This exists already, but isnt really useable in the current form for plugins.> The way it works is a function registers a callback for when the disk> is going to spin down... but this wont work for functions because they> may not be in memory at that point anymore.>
So the thread approach would be better for plugins?
Windows Live Spaces er her! Du kan nemt oprette dit eget personlige websted.
Received on 2007-03-17