From: Xiaofan C. <xia...@gm...> - 2018-04-24 12:27:50
|
On Sat, Apr 14, 2018 at 2:14 AM, Travis <lib...@gm...> wrote: > Greetings, > > Let's check the return code. What about this: > static int _usb_cancel_io(usb_context_t *context) > { > int ret; > ret = _usb_abort_ep(context->dev, context->req.endpoint.endpoint); > if (ret == 0) > { > WaitForSingleObject(context->ol.hEvent, 1000); > } > else > { > WaitForSingleObject(context->ol.hEvent, 0); > } > return ret; > } > > Use 1000 ms I think. That should always be plenty and it will keep it from > dead locking. > Hi Peter, Any updates? -- Xiaofan |