<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/1.5.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: volatile</title>
	<link>http://www.airs.com/blog/archives/154</link>
	<description>Ian Lance Taylor</description>
	<pubDate>Sat, 17 May 2008 10:43:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.2</generator>

	<item>
 		<title>Comment on volatile by: Ian Lance Taylor</title>
		<link>http://www.airs.com/blog/archives/154#comment-11353</link>
		<pubDate>Mon, 10 Mar 2008 19:14:08 +0000</pubDate>
		<guid>http://www.airs.com/blog/archives/154#comment-11353</guid>
					<description>Thanks for the pointer to the article.  I admit that I had not considered that way of using volatile in C++ to prevent inadvertent unlocked accesses.  That seems like a good idea.  I was thinking about applying volatile to primitive types, and indeed the article agrees with me: don't do it for multithreaded code.</description>
		<content:encoded><![CDATA[	<p>Thanks for the pointer to the article.  I admit that I had not considered that way of using volatile in C++ to prevent inadvertent unlocked accesses.  That seems like a good idea.  I was thinking about applying volatile to primitive types, and indeed the article agrees with me: don&#8217;t do it for multithreaded code.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on volatile by: gabe</title>
		<link>http://www.airs.com/blog/archives/154#comment-11352</link>
		<pubDate>Sat, 08 Mar 2008 13:46:08 +0000</pubDate>
		<guid>http://www.airs.com/blog/archives/154#comment-11352</guid>
					<description>Hi Ian. Thanks for this post. I've recently started working on some multi threaded C++ apps. Currently using Trolltech/Qt's libraries but I'll probably also probably use Boost. Anyway, this discussion of volatile was very helpful, especially the use of volatile sig_atomic_t as a signal which will not require a semaphore or mutex.

At any rate, I'm curious about your view of this use of volatile, from Andrei Alexandrescu. 
http://www.ddj.com/cpp/184403766

It seems incorrect or at least unintended according to the standard. However, I have used it on a small project and had good results. 

Thanks!</description>
		<content:encoded><![CDATA[	<p>Hi Ian. Thanks for this post. I&#8217;ve recently started working on some multi threaded C++ apps. Currently using Trolltech/Qt&#8217;s libraries but I&#8217;ll probably also probably use Boost. Anyway, this discussion of volatile was very helpful, especially the use of volatile sig_atomic_t as a signal which will not require a semaphore or mutex.</p>
	<p>At any rate, I&#8217;m curious about your view of this use of volatile, from Andrei Alexandrescu.<br />
<a href='http://www.ddj.com/cpp/184403766' rel='nofollow'>http://www.ddj.com/cpp/184403766</a></p>
	<p>It seems incorrect or at least unintended according to the standard. However, I have used it on a small project and had good results. </p>
	<p>Thanks!
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
