On Sat, 2003-12-27 at 19:09, Denis Oliver Kropp wrote:
> 
> I've just commited a new function IDirectFBEventBuffer::CreateFileDescriptor().
> Use that and add the returned file descriptor to the file descriptor set of
> your select() loop. You still need to call IDirectFBEventBuffer::Reset() to
> flush the contents afterwards.

Cool, that sounds like a nice addition to the API. I'm not sure I
understand the Reset() part though. Do you mean that after reading
events from a select() or poll() that Reset() should be called to clear
the events? Is there a possibility of an event sneaking into the event
buffer between fetching and Reset(), and thereby losing the event?

I've currently implemented a second thread in my program that puts the
events into a pipe, like you suggested. This works for now, but in the
future I look forward to using the new CreateFileDescriptor function :)
Thanks again.
        Josh Green



-- 
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-dev" as subject.

Reply via email to