nanogui: TIMERS
Subject:
Re: [nanogui] TIMERS
From:
Alex Holden ####@####.####
Date:
11 Jan 2006 15:59:36 +0000
Message-Id: <78DC67D7-1B3A-45B4-BB99-727EC5721146@linuxhacker.org>
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