This allows creating multiple HidApi instances at the same time. hidapi is initialized when the first one is created, and never deinitialized.
This issue seems to imply that hidapi is thread safe as long as you don't access the same device from 2 threads at the same time, which the current Rust bindings already enforce: https://github.com/signal11/hidapi/issues/72
This allows creating multiple
HidApi
instances at the same time. hidapi is initialized when the first one is created, and never deinitialized.This issue seems to imply that hidapi is thread safe as long as you don't access the same device from 2 threads at the same time, which the current Rust bindings already enforce: https://github.com/signal11/hidapi/issues/72