| Reference Manual - 1.4.3 | ||
| |||
| DFBResult 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.
| This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License |