libusb icon indicating copy to clipboard operation
libusb copied to clipboard

darwin: fix race condition on device capture

Open osy opened this issue 4 months ago • 3 comments

If two threads try to capture at the same time, the result can be inconsistent. For example, a process can have two different contexts to libusb and both call libusb_reset_device.

osy avatar Aug 25 '25 16:08 osy

I wonder if this fixes https://github.com/libusb/libusb/issues/1635 I'll check in a bit

Mr-Bossman avatar Aug 25 '25 19:08 Mr-Bossman

@osy BTW you may be interested in https://github.com/libusb/libusb/pull/1419

In fact I think I'll revive that effort, we could probably get some of it in first...

seanm avatar Aug 26 '25 01:08 seanm

@osy

Would you please address the comments from @seanm? Thanks.

mcuee avatar Sep 19 '25 13:09 mcuee