|Site sponsored by IGEL|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[directfb-dev] WaitForEvent with timers?
Hello there, in an effort to familiarize myself with the DirectFB API, I'm currently porting Tom Gilbert's Imlib2 based image/webcam viewer feh to DFB. It has among other features a slideshow mode, which changes the image after a configurable amount of time. These timers are implemented using select() as to avoid busy waiting. They are interrupted by keyboard events for example when the user wants to terminate the program during such a timer period. I'd like to propose the addition of timeout values as an additional parameter to WaitForEvent, which would of course require using select in the _device_EventThread() handlers. An alternative would be to add WaitForEventWithTimeout() or something similar to the API. What do you think? Cheers, and keep up the good work, the API is a pleasure to work with, Till -- mailto: firstname.lastname@example.org http://www.adam-lilienthal.de/till -- Info: To unsubscribe send a mail to email@example.com with "unsubscribe directfb-dev" as subject.