nanogui@linuxhacker.org
nanogui@linuxhacker.org
> If I understood it right though, I think he wants to wait for a specific
> requested time rather than "when the next event happens, or we time out
> waiting for one". Which means that unless you want to rely on select()
> modifying the timeout value (something which isn't portable to a lot of
> non-Linux systems and wouldn't take account of the time spent in the
> client between GrGetNextEvent() calls), you'll have to work out the
> absolute time of the timeout on the first call (add the timeout to the
> result of a gettimeofday() call), then do another gettimeofday() to
> recalculate the timeout every time you call select().
No, I need to return if we get an event from the server, of from my fd, or
we timeout. And I need to be able to distinguish between them
From Peter
nanogui@linuxhacker.org