On Sat, Feb 8, 2014 at 1:13 AM, hgs16 <h...@rapsodo.com> wrote: > Hi all, > > I am having issues when trying to use synchronous calls from multiple > threads. > > >From thread A I do libusb_bulk_transfer(dev_hnd,IN_EP,...) (read) and in > another thread B I do libusb_bulk_transfer(dev_hnd,OUT_EP,...) (write) to > the same usb device using the same device handle. > > What I am noticing is, send call is blocked until till read call is released > (say by timeout). > > Is this expected behaviour?
Yes. The synchronous APIs are blocking. > Kindly provide me with some insights to solve this issue. You can use asynchronous API. http://libusb.sourceforge.net/api-1.0/io.html -- Xiaofan ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel