hidapi icon indicating copy to clipboard operation
hidapi copied to clipboard

hid_close close handle immediately at win32

Open LianYangCn opened this issue 5 years ago • 3 comments

In multi-thread environment, if the hid_read thread is different from the hid_close thread, the hid_read function will block the thread exiting, at the wait object operation.

This fix just set the event, after cancel io, so that, hid_read not wait anymore and exiting read

LianYangCn avatar Dec 26 '18 03:12 LianYangCn

Please consider making this PR at https://github.com/libusb/hidapi See #373

jonathancross avatar Jul 11 '19 01:07 jonathancross

Please consider making this PR at https://github.com/libusb/hidapi See #373

Ok, see libusb/hidapi#41

LianYangCn avatar Jul 12 '19 07:07 LianYangCn

Thank you for trying anyway ¯\_(ツ)_/¯

jonathancross avatar Jul 16 '19 12:07 jonathancross