nanogui: Dealing with timeouts...


Previous by date: 8 Mar 2000 16:58:26 -0000 Dealing with timeouts..., shane.isupportlive.com
Next by date: 8 Mar 2000 16:58:26 -0000 Re: fltk port status, Greg Haerr
Previous in thread: 8 Mar 2000 16:58:26 -0000 Dealing with timeouts..., shane.isupportlive.com
Next in thread: 8 Mar 2000 16:58:26 -0000 Re: Dealing with timeouts..., Greg Haerr

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--

Previous by date: 8 Mar 2000 16:58:26 -0000 Dealing with timeouts..., shane.isupportlive.com
Next by date: 8 Mar 2000 16:58:26 -0000 Re: fltk port status, Greg Haerr
Previous in thread: 8 Mar 2000 16:58:26 -0000 Dealing with timeouts..., shane.isupportlive.com
Next in thread: 8 Mar 2000 16:58:26 -0000 Re: Dealing with timeouts..., Greg Haerr


Powered by ezmlm-browse 0.20.