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: Where should this functionality go?

Re: Where should this functionality go?

From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Thu, 01 May 2003 01:12:05 +0200

c s wrote:
> If want to poll the status of the external power from
> within the power_management thread, I can change the 3
> calls to sleep() inside the main loop to instead be
> calls to a function that will sleep for the specified
> time AND poll the external power status a few times a
> second while doing this sleep for the main thread
> loop. Would this be an acceptable way of doing this?

I think so yes. As long as you keep the polling frequency as low as possible

Linus
Received on 2003-05-01

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