Open
Description
Currently hidapi is not able to close open device handle in a thread-safe manner. This is due to CancelIo
function being used instead of CancelIoEx
for closing a win32 device handle.
Upgrading to CancelIoEx
would cause a WinXP support to be dropped (signal11/hidapi#48), however a fallback could be used to try and load CancelIoEx
dynamically to keep a somewhat buggy WinXP experience (signal11/hidapi#208).
Something needs to be done about this issue as hidapi is being used in multi-threaded environment more and more. I would personally propose to drop WinXP support altogether as there is no point in beating a dead horse, however I would like to hear what you guys think.