hidapi
hidapi copied to clipboard
hid_close close handle immediately at win32
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
Please consider making this PR at https://github.com/libusb/hidapi See #373
Please consider making this PR at https://github.com/libusb/hidapi See #373
Ok, see libusb/hidapi#41
Thank you for trying anyway ¯\_(ツ)_/¯