On Tue, Aug 24, 2010 at 10:15:57AM +0200, m0n0 wrote: > > Hello to the list, > > I'm having an question about gui_poll function - should it block if the > active parameter is false? > If networking is done (active == false), the page isn't rendered > complete, so at this point I can't allow gui_poll to block. > How to get the information if rendering is still running? Active becomes > false before rendering has finished, so there is no way to use the active > flag. > > When everything is done (how to get that information?), gui_poll > could/should be blocking... like an select on a network socket. > This could reduce system load, because gui_poll isn't running 100 times a > second uselessly.
gui_poll should block on input untill the next timer event when there are no outstanding redraw requests to be performed and the active flag is false. An obvious example of this is the gui_poll() in framebuffer/gui.c > > Greets, > Ole > > -- Regards Vincent http://www.kyllikki.org/
