Re: [nanogui] TIMERS
Alex Holden ####@####.####
11 Jan 2006 15:59:36 +0000
On 11 Jan 2006, at 15:47, Robbie wrote:
> Even in this case I don't understand why that should be a problem.
> The loop is to continually check for events and the idle call has
> nothing to it except when the timer has expired.
An infinite loop repeatedly querying the server as fast as possible
and using up 100% CPU might cause the server to behave oddly.
> Also, this idle in intented to several other tasks when nothing is
> happening. If memory serve me right, I believe the reason I chose
> CheckNext, instead of GetNext if a delay involved with GetNext. I
> stand corrected incase there is something I may have misunderstood
> from the API. ??
GrGetNextEvent() blocks until there is an event ready to deliver to
the client. If you want your client program to periodically perform
some background task, use a periodic timer to trigger it.
------------ Alex Holden - http://www.alexholden.net/ ------------
If it doesn't work, you're not hitting it with a big enough hammer