On Fri, Jul 23, 2010 at 7:21 PM, Hans Petter Selasky <hsela...@c2i.net> wrote:
> Should work, but it might be that the second poll, when you try to process the
> events, don't work like expected. After any event on the two fd's you should
> call "libusb_handle_events_locked()" using a "tv = NULL".
With libusb_handle_events_locked() instead of
libusb_handle_events_timeout() there is no improvement ...
It looks like if there is a IN alread pending on the bus when program
runs the first select call returns the filedesc correctly but after
this nothing triggers the second select. At least most of the time it
looks like IN transfers that are received during the second select are
somehow swallowed unhandled.
If there is no IN pending on the bus the first select also returns but
libusb_handle_events_locked() doesn't call a callback, then the second
select also fails.
Could it be that after the poll() in lib_usb_handle_events_*() libusb
or the usb stack is somewhat in a corrupt state?
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"