libusb_handle_events_locked
int libusb_handle_events_locked(libusb_context * ctx, struct timeval *tv);
err = libusb_handle_events_locked(ctx, tv);