while (!urb.usercontext && ((ret = ioctl(dev->fd, IOCTL_USB_REAPURBNDELAY, &context)) == -1) && waiting) { | while (!urb.usercontext && ((ret = ioctl(dev->fd, IOCTL_USB_REAPURBNDELAY, &context)) == -1) && waiting) { |
select(dev->fd + 1, NULL, &writefds, NULL, &tv); //sub second wait | select(dev->fd + 1, NULL, &writefds, NULL, &tv); //sub second wait |