Quoting Josh Green:
> 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?

Reset() just clears the linked list of events.
Each event is written to the pipe before being added to the list.
So you won't loose events if you read from the pipe.
We could also configure the buffer to use the pipe only without
the need to Reset() it frequently.

-- 
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

                            Convergence GmbH


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

Reply via email to