|
From: Tim R. <ti...@pr...> - 2022-09-12 20:33:57
|
On 9/12/22 06:58, François Colas wrote: > > I would like to know if it's valid or not to use > `libusb_bulk_transfer()` on two different endpoints at the same time > (two threads) but with same `libusb_device_handle` object. > > I need this to do only one claim for both transfers otherwise I have > to do only one transfer at a time (the device supports two transfers > at a time). This is very common. It's usually done with asynchronous I/O, but is should be fine with the synchronous APIs as well. Your device shouldn't care at all. It is a "serial" bus, after all. The requests might be interleaved at the packet level, but that's part and parcel of what a USB device has to handle. -- Tim Roberts,ti...@pr... Providenza & Boekelheide, Inc. |