<?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: Mutex with PHP and mySQL</title>
	<atom:link href="http://blog.perplexedlabs.com/2008/02/06/mutex-with-php-and-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.perplexedlabs.com/2008/02/06/mutex-with-php-and-mysql/</link>
	<description>web development war stories from the frontlines to the backend</description>
	<lastBuildDate>Fri, 12 Mar 2010 21:11:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: m_rahman</title>
		<link>http://blog.perplexedlabs.com/2008/02/06/mutex-with-php-and-mysql/comment-page-1/#comment-2728</link>
		<dc:creator>m_rahman</dc:creator>
		<pubDate>Wed, 03 Jun 2009 02:22:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.perplexedlabs.com/2008/02/06/mutex-with-php-and-mysql/#comment-2728</guid>
		<description>otherwise it&#039;s great&lt;br&gt;&lt;br&gt;thank you</description>
		<content:encoded><![CDATA[<p>otherwise it&#39;s great</p>
<p>thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: m_rahman</title>
		<link>http://blog.perplexedlabs.com/2008/02/06/mutex-with-php-and-mysql/comment-page-1/#comment-2608</link>
		<dc:creator>m_rahman</dc:creator>
		<pubDate>Tue, 02 Jun 2009 22:22:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.perplexedlabs.com/2008/02/06/mutex-with-php-and-mysql/#comment-2608</guid>
		<description>otherwise it&#039;s great&lt;br&gt;&lt;br&gt;thank you</description>
		<content:encoded><![CDATA[<p>otherwise it&#39;s great</p>
<p>thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://blog.perplexedlabs.com/2008/02/06/mutex-with-php-and-mysql/comment-page-1/#comment-5</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 14 Feb 2008 14:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.perplexedlabs.com/2008/02/06/mutex-with-php-and-mysql/#comment-5</guid>
		<description>This is a valid point, thank you.  It would probably be best to improve the simplicity of the class by calling isFree() from inside lock() and returning (in lock) whether it was a success or failure... then you could simply:

$lock = new cLock(&quot;identifier&quot;);
if($lock-&gt;lock()) {
    // execute
    $lock-&gt;release();
}</description>
		<content:encoded><![CDATA[<p>This is a valid point, thank you.  It would probably be best to improve the simplicity of the class by calling isFree() from inside lock() and returning (in lock) whether it was a success or failure&#8230; then you could simply:</p>
<p>$lock = new cLock(&#8220;identifier&#8221;);<br />
if($lock->lock()) {<br />
    // execute<br />
    $lock->release();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Artur Muszynski</title>
		<link>http://blog.perplexedlabs.com/2008/02/06/mutex-with-php-and-mysql/comment-page-1/#comment-4</link>
		<dc:creator>Artur Muszynski</dc:creator>
		<pubDate>Thu, 14 Feb 2008 11:10:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.perplexedlabs.com/2008/02/06/mutex-with-php-and-mysql/#comment-4</guid>
		<description>Usage example is buggy. You have to check if lock didn&#039;t failed. This prevents race when we call isFree() then another process call lock():
...
$lock-&gt;lock();
if($lock-&gt;locked)
{
  // execute
  $lock-&gt;release();
}</description>
		<content:encoded><![CDATA[<p>Usage example is buggy. You have to check if lock didn&#8217;t failed. This prevents race when we call isFree() then another process call lock():<br />
&#8230;<br />
$lock-&gt;lock();<br />
if($lock-&gt;locked)<br />
{<br />
  // execute<br />
  $lock-&gt;release();<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
