<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: today&#8217;s hack: pstimeouts</title>
	<atom:link href="http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/</link>
	<description>a lowercase manifesto</description>
	<lastBuildDate>Thu, 15 Oct 2009 09:25:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Luis</title>
		<link>http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/comment-page-1/#comment-98</link>
		<dc:creator>Luis</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/#comment-98</guid>
		<description>Cool. I assume those numbers are cumulative since last boot?</description>
		<content:encoded><![CDATA[<p>Cool. I assume those numbers are cumulative since last boot?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: desrt</title>
		<link>http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/comment-page-1/#comment-99</link>
		<dc:creator>desrt</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/#comment-99</guid>
		<description>Since the process was created with fork().</description>
		<content:encoded><![CDATA[<p>Since the process was created with fork().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicholas Miell</title>
		<link>http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/comment-page-1/#comment-100</link>
		<dc:creator>Nicholas Miell</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/#comment-100</guid>
		<description>Hate to tell you this, but you&#039;ve just reinvented the wheel:&lt;p/&gt;&lt;a href=&quot;http://www.ussg.iu.edu/hypermail/linux/kernel/0508.1/0106.html&quot;&gt;http://www.ussg.iu.edu/hypermail/linux/kernel/0508.1/0106.html&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hate to tell you this, but you&#8217;ve just reinvented the wheel:
<p /><a href="http://www.ussg.iu.edu/hypermail/linux/kernel/0508.1/0106.html">http://www.ussg.iu.edu/hypermail/linux/kernel/0508.1/0106.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: desrt</title>
		<link>http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/comment-page-1/#comment-101</link>
		<dc:creator>desrt</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/#comment-101</guid>
		<description>i looked at timertop and ran it.  it only tracked when high precision timers caused wakeups.&lt;p/&gt;this patch tracks things like poll/select as well which is a lot more useful for the specific use case of finding gtk applications that schedule timers to run more often.</description>
		<content:encoded><![CDATA[<p>i looked at timertop and ran it.  it only tracked when high precision timers caused wakeups.
<p />this patch tracks things like poll/select as well which is a lot more useful for the specific use case of finding gtk applications that schedule timers to run more often.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/comment-page-1/#comment-102</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/#comment-102</guid>
		<description>You, sir, are a god.&lt;p/&gt;A minor god, to be sure -- somewhere between Pellor and Mnemosyne, I&#039;d say -- but still quite bodacious.</description>
		<content:encoded><![CDATA[<p>You, sir, are a god.
<p />A minor god, to be sure &#8212; somewhere between Pellor and Mnemosyne, I&#8217;d say &#8212; but still quite bodacious.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Hughes</title>
		<link>http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/comment-page-1/#comment-103</link>
		<dc:creator>Richard Hughes</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/#comment-103</guid>
		<description>Looks good Ryan. Keep up the good work.</description>
		<content:encoded><![CDATA[<p>Looks good Ryan. Keep up the good work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timothée Lecomte</title>
		<link>http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/comment-page-1/#comment-104</link>
		<dc:creator>Timothée Lecomte</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/#comment-104</guid>
		<description>I appreciate this kind of work.&lt;p/&gt;I have a question though. I wrote a peace of code for gnuplot where I have to care about stdin from the command-line interface and at the same time to look for the GUI events (clicks, moves, keys) coming from the &#039;plot&#039; window. The main thread is a loop on a function called waitforinput() which is supposed to return the next character from stdin while processing the GUI events when they arrive. There is a second thread which is a usual GUI loop, and when it processes an event, it forwards it to the main one using a mutex&#039;ed list. I ended up using select() on stdin with a timeout to periodically check for the contents of this list. So gnuplot falls in your category of &quot;bad programs&quot;, but it&#039;s because I don&#039;t know how else to do ! Do you have an idea ?</description>
		<content:encoded><![CDATA[<p>I appreciate this kind of work.
<p />I have a question though. I wrote a peace of code for gnuplot where I have to care about stdin from the command-line interface and at the same time to look for the GUI events (clicks, moves, keys) coming from the &#8216;plot&#8217; window. The main thread is a loop on a function called waitforinput() which is supposed to return the next character from stdin while processing the GUI events when they arrive. There is a second thread which is a usual GUI loop, and when it processes an event, it forwards it to the main one using a mutex&#8217;ed list. I ended up using select() on stdin with a timeout to periodically check for the contents of this list. So gnuplot falls in your category of &#8220;bad programs&#8221;, but it&#8217;s because I don&#8217;t know how else to do ! Do you have an idea ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: desrt</title>
		<link>http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/comment-page-1/#comment-105</link>
		<dc:creator>desrt</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/#comment-105</guid>
		<description>Timothée: the only real solution here is to use a single mainloop for X events and your stdin.&lt;p/&gt;Toolkits like GTK will let you register a fd watch (like for stdin).&lt;p/&gt;Otherwise, you can get the X socket fd from the display using the ConnectionNumber() call and add it to your stdin mainloop that way (this is what GDK does internally).</description>
		<content:encoded><![CDATA[<p>Timothée: the only real solution here is to use a single mainloop for X events and your stdin.
<p />Toolkits like GTK will let you register a fd watch (like for stdin).
<p />Otherwise, you can get the X socket fd from the display using the ConnectionNumber() call and add it to your stdin mainloop that way (this is what GDK does internally).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timothée Lecomte</title>
		<link>http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/comment-page-1/#comment-106</link>
		<dc:creator>Timothée Lecomte</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/desrt/2006/09/17/todays-hack-pstimeouts/#comment-106</guid>
		<description>desrt: thanks !</description>
		<content:encoded><![CDATA[<p>desrt: thanks !</p>
]]></content:encoded>
	</item>
</channel>
</rss>
