<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[James's Programming Page — HidSharp HidManager thread spinning on Linux]]></title>
		<link>https://swforum.seekye.com/topic/10153/</link>
		<atom:link href="https://swforum.seekye.com/feed/rss/topic/10153/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in HidSharp HidManager thread spinning on Linux.]]></description>
		<lastBuildDate>Mon, 03 Jul 2023 11:56:52 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: HidSharp HidManager thread spinning on Linux]]></title>
			<link>https://swforum.seekye.com/post/13142/#p13142</link>
			<description><![CDATA[<p>Someone reported the same issue on this GitHub mirror/fork: github(dot)com/IntergatedCircuits/HidSharp/issues/8</p>]]></description>
			<author><![CDATA[null@example.com (zini)]]></author>
			<pubDate>Mon, 03 Jul 2023 11:56:52 +0000</pubDate>
			<guid>https://swforum.seekye.com/post/13142/#p13142</guid>
		</item>
		<item>
			<title><![CDATA[HidSharp HidManager thread spinning on Linux]]></title>
			<link>https://swforum.seekye.com/post/13141/#p13141</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (zini)]]></author>
			<pubDate>Mon, 03 Jul 2023 11:48:25 +0000</pubDate>
			<guid>https://swforum.seekye.com/post/13141/#p13141</guid>
		</item>
	</channel>
</rss>
