![]() | Reference Manual - 1.0.0 | ||
|
Create a file descriptor for reading events.
CreateFileDescriptor ( | ||||
IDirectFBEventBuffer | * | thiz, | ||
int | * | ret_fd | ||
); |
This method provides an alternative for reading events from an event buffer. It creates a file descriptor which can be used in select(), poll() or read().
In general only non-threaded applications which already use select() or poll() need it.
Note: This method flushes the event buffer. After calling this method all other methods except IDirectFBEventBuffer::PostEvent() will return DFB_UNSUPPORTED. Calling this method again will return DFB_BUSY.