nanogui: Dealing with timeouts...
Subject:
Re: Dealing with timeouts...
From:
Erik Andersen ####@####.####
Date:
8 Mar 2000 16:58:26 -0000
Message-Id: <20000308094816.A1529@xmission.com>
On Wed Mar 08, 2000 at 12:58:22PM +0000, ####@####.#### 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: ####@####.####
--This message was written using 73% post-consumer electrons--