nanogui@linuxhacker.org
nanogui@linuxhacker.org
On Wed Mar 08, 2000 at 12:58:22PM +0000, shane@isupportlive.com wrote:
> Greg & NanoGUIers,
>
> Since our programs run in the same process as the nano-X-server, I was
> wondering if you had some suggestions with how to deal with timeouts.
> I was thinking since we want to be real lightweight that we might
> include it in the GsSelect(void) loop. Some sort of function in the
> NanoGUI API to insert timeouts so that when GsSelect calls select() it
> will set the timeout to be configurable, and call the appropriate
> function.
Sounds like a good solution would be setitimer(2) with
a signal handler for SIGALRM that checks if updates are
needed, and if so redraws the parts of the screen that
need it.
-Erik
--
Erik B. Andersen Web: http://www.xmission.com/~andersen/
email: andersee@debian.org
--This message was written using 73% post-consumer electrons--
nanogui@linuxhacker.org