nanogui: Timer Event Patch for Nano-X


Previous by date: 8 May 2001 14:20:43 -0000 Re: X11 KEY_UP event, Jordan Crouse
Next by date: 8 May 2001 14:20:43 -0000 Re: Timer Event Patch for Nano-X, Alex Holden
Previous in thread: 8 May 2001 14:20:43 -0000 Re: Timer Event Patch for Nano-X, Jordan Crouse
Next in thread: 8 May 2001 14:20:43 -0000 Re: Timer Event Patch for Nano-X, Alex Holden

Subject: Re: Timer Event Patch for Nano-X
From: "Gary James" ####@####.####
Date: 8 May 2001 14:20:43 -0000
Message-Id: <3AF7C872.10686.A7826@localhost>

> On Tue, 8 May 2001, Gary James wrote:
> > I've made some modifications to allow creating periodic timers in nano-X
> > applications. There are two new functions in the nano-X API GrCreateTimer()
> > and GrDestroyTimer(). When you create a timer you specify a window ID and a
> > timeout period. You can have more than one timer per window. A
> > GR_TIMER_EVENT will be generated every time the timer period expires.
> 
> Good work. It would be nice if it was possible to associate a "magic
> number" with each timer, to make it possible for the client to determine
> which timer triggered when there are several of them associated with one
> window. I wouldn't bother making it pointer sized (as in void *arg) as
> that brings up problems with different architectures having different
> address lengths and wastes bandwidth- I'd use a 16 bit type.

I'm including the timer ID (GR_TIMER_ID) in the event structure for 
this purpose.


Gary James
####@####.####
http://home.twcny.rr.com/embedded/






--
Gary A James, Critical Link, LLC         
Voice:  315.425.4045 x218  
Fax:    315.425.4048    
E-Mail: ####@####.####
WEB:    http://www.criticallink.com

Previous by date: 8 May 2001 14:20:43 -0000 Re: X11 KEY_UP event, Jordan Crouse
Next by date: 8 May 2001 14:20:43 -0000 Re: Timer Event Patch for Nano-X, Alex Holden
Previous in thread: 8 May 2001 14:20:43 -0000 Re: Timer Event Patch for Nano-X, Jordan Crouse
Next in thread: 8 May 2001 14:20:43 -0000 Re: Timer Event Patch for Nano-X, Alex Holden


Powered by ezmlm-browse 0.20.