nanogui: Timer Event Patch for Nano-X


Previous by date: 8 May 2001 09:10:48 -0000 Re: Is there chinese input mechod for microwindow?, Jim Shiu
Next by date: 8 May 2001 09:10:48 -0000 X11 KEY_UP event, Timo Ketola
Previous in thread: 8 May 2001 09:10:48 -0000 Timer Event Patch for Nano-X, Gary James
Next in thread: 8 May 2001 09:10:48 -0000 Re: Timer Event Patch for Nano-X, Jordan Crouse

Subject: Re: Timer Event Patch for Nano-X
From: Alex Holden ####@####.####
Date: 8 May 2001 09:10:48 -0000
Message-Id: <Pine.LNX.4.04.10105080957140.670-100000@hyperspace.linuxhacker.org>

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.

-- 
------- Alex Holden -------
http://www.linuxhacker.org/
 http://www.robogeeks.org/


Previous by date: 8 May 2001 09:10:48 -0000 Re: Is there chinese input mechod for microwindow?, Jim Shiu
Next by date: 8 May 2001 09:10:48 -0000 X11 KEY_UP event, Timo Ketola
Previous in thread: 8 May 2001 09:10:48 -0000 Timer Event Patch for Nano-X, Gary James
Next in thread: 8 May 2001 09:10:48 -0000 Re: Timer Event Patch for Nano-X, Jordan Crouse


Powered by ezmlm-browse 0.20.