nanogui: Problem With GrGetNextEventTimeout()?


Previous by date: 6 Nov 2006 18:27:02 +0000 Re: Linux Keyboard driver for IPAQ, celeber2.gmail.com
Next by date: 6 Nov 2006 18:27:02 +0000 Button interaction over GPIO, Raph HP
Previous in thread:
Next in thread: 6 Nov 2006 18:27:02 +0000 Re: Problem With GrGetNextEventTimeout()?, Greg Haerr

Subject: Problem With GrGetNextEventTimeout()?
From: "Gil Glass" ####@####.####
Date: 6 Nov 2006 18:27:02 +0000
Message-Id: <6ECE57DF49376146B91A92A3C37EFC0E0247DE81@SJEXCH03.ds.jdsu.net>

Hello,

 

I am using Nano-X via Microwindows version 0.91 on an ARM platform.
Everything's been working fine but today I tried using the
GrGetNextEventTimeout() function only to find that, depending on the
timeout specified, it might never time out.  What I found is that, if my
timeout is set to greater than 59 milliseconds, the function doesn't
return until an event occurs.

 

To summarize, the following code snippet will go to completion and will
show an event 16 (GR_EVENT_TYPE_TIMEOUT) having occurred:

 

...

 

// Just look at the event queue.

GrPeekEvent(&event);

 

cout << "The event queue contains " << event.type << "." << endl;

 

// Wait for an event with timeout.

GrGetNextEventTimeout(&event, 59);

 

cout << "Event " << event.type << " was received." << endl;

 

...

 

However, this snippet will hang forever waiting for an event:

 

...

 

// Just look at the event queue.

GrPeekEvent(&event);

 

cout << "The event queue contains " << event.type << "." << endl;

 

// Wait for an event with timeout.

GrGetNextEventTimeout(&event, 60);

 

cout << "Event " << event.type << " was received." << endl;

 

...

 

Note that "60" can be replaced with any number greater than 60 and the
same thing occurs.

 

Is this a known issue with this version of the code?  Please inform.

 

Cheers,

Gil Glass

Senior Software Engineer

Telecom Field Services Division

JDSU

Germantown, MD, USA

+1 (240) 404-2551

 


Previous by date: 6 Nov 2006 18:27:02 +0000 Re: Linux Keyboard driver for IPAQ, celeber2.gmail.com
Next by date: 6 Nov 2006 18:27:02 +0000 Button interaction over GPIO, Raph HP
Previous in thread:
Next in thread: 6 Nov 2006 18:27:02 +0000 Re: Problem With GrGetNextEventTimeout()?, Greg Haerr


Powered by ezmlm-browse 0.20.