Rockbox mail archive
Subject: Re: Where should this functionality go?
From: Linus Nielsen Feltzing (linus_at_haxx.se)
Date: 2003-05-01
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
Page was last modified "Jan 10 2012" The Rockbox Crew
|