<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[James's Programming Page — HidSharp HidManager thread spinning on Linux]]></title>
	<link rel="self" href="https://swforum.seekye.com/feed/atom/topic/10153/" />
	<updated>2023-07-03T11:56:52Z</updated>
	<generator>PunBB</generator>
	<id>https://swforum.seekye.com/topic/10153/</id>
		<entry>
			<title type="html"><![CDATA[Re: HidSharp HidManager thread spinning on Linux]]></title>
			<link rel="alternate" href="https://swforum.seekye.com/post/13142/#p13142" />
			<content type="html"><![CDATA[<p>Someone reported the same issue on this GitHub mirror/fork: github(dot)com/IntergatedCircuits/HidSharp/issues/8</p>]]></content>
			<author>
				<name><![CDATA[zini]]></name>
				<uri>https://swforum.seekye.com/user/14970/</uri>
			</author>
			<updated>2023-07-03T11:56:52Z</updated>
			<id>https://swforum.seekye.com/post/13142/#p13142</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[HidSharp HidManager thread spinning on Linux]]></title>
			<link rel="alternate" href="https://swforum.seekye.com/post/13141/#p13141" />
			<content type="html"><![CDATA[<p>Hi,</p><p>I&#039;ve noticed that after some random time the HidManager thread starts looping rapidly on Linux. The loop pins one core to 100% usage.<br />I&#039;ve tried to profile the code a bit, and it seems that the NativeMethods.poll returns immediately (Platform/Linux/LinuxHidManager.cs, row 63, &quot;ret = NativeMethods.retry(() =&gt; NativeMethods.poll(fds, (IntPtr)1, -1));&quot;).</p><p>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&#039;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.</p>]]></content>
			<author>
				<name><![CDATA[zini]]></name>
				<uri>https://swforum.seekye.com/user/14970/</uri>
			</author>
			<updated>2023-07-03T11:48:25Z</updated>
			<id>https://swforum.seekye.com/post/13141/#p13141</id>
		</entry>
</feed>
