Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hid_close close handle immediately at win32 #416

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

LianYangCn
Copy link

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

…ely-on-win32

Update hid.c, fix hid_close block by the hid_read
@jonathancross
Copy link

jonathancross commented Jul 11, 2019

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

@LianYangCn
Copy link
Author

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

Ok, see libusb/hidapi#41

@jonathancross
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants