core: Miscellaneous transfer timeout improvements
authorChris Dickens <christopher.a.dickens@gmail.com>
Mon, 27 Apr 2015 09:16:28 +0000 (02:16 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Thu, 7 May 2015 19:34:35 +0000 (12:34 -0700)
commit02f7f859eec8aab0b680ad18d3aabd1fe24edb28
tree34d386fbe8d538e02f5e33e291fa8c971d51a5e7
parenta1c9895543b6aa3deb6e42e7be83121b28f298ce
core: Miscellaneous transfer timeout improvements

  * When removing a transfer from the flying_transfers list, only
    rearm the timerfd if the transfer being removed was the first
    transfer *and* had a timeout. This is the only case where the
    timerfd should be altered by a transfer being removed.

  * When searching the flying_transfers list for the next timeout,
    searching can cease when the first transfer with an infinite
    timeout is encountered.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/io.c
libusb/version_nano.h