Topic: HidSharp HidManager thread spinning on Linux
I've noticed that after some random time the HidManager thread starts looping rapidly on Linux. The loop pins one core to 100% usage.
I've tried to profile the code a bit, and it seems that the NativeMethods.poll returns immediately (Platform/Linux/LinuxHidManager.cs, row 63, "ret = NativeMethods.retry(() => NativeMethods.poll(fds, (IntPtr)1, -1));").
My usage of the library is just opening a device, sending a report to the HID stream and reading a response report, then closing the stream. I'm doing this every 5 minutes or so, and at some random time the HidManager thread starts to eat up the CPU. The program seems to continue working despite this.