Use timerfd for timeout handling
authorDaniel Drake <dsd@gentoo.org>
Wed, 28 Oct 2009 14:48:49 +0000 (20:33 +0545)
committerDaniel Drake <dsd@gentoo.org>
Sat, 7 Nov 2009 10:46:09 +0000 (10:46 +0000)
commit4783008b7e711de9cb31631e60dda995f44068de
tree41eb729442f7df6da2ef58469b8dc7cd43e6d326
parent9b120c2b3735566533c179aa8ca758fe45899a38
Use timerfd for timeout handling

Use a new file descriptor from the timerfd system calls to handle
timeouts. On supported systems, this means that there is less hassle
figuring out when the poll() timeout should be, since
libusb_get_next_timeout() will always return 0 and the timeout events will
be triggered as regular activity on the file descriptor set.

Add API function libusb_pollfds_handle_timeouts() to detect whether
you're on a platform with the timing headache, and flesh out the
surrounding documentation.
AUTHORS
configure.ac
libusb/io.c
libusb/libusb.h
libusb/libusbi.h
libusb/os/linux_usbfs.c