<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-p71.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T22:24:58</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p71.htm#66003" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p71.htm#39249" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p71.htm#24964" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p71.htm#16499" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p71.htm#66003">
		<title>coldfusion/6.1/htmldocs/tags-p71.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p71.htm#66003</link>
		<description>FYI a cfreturn inside a cflock seems to work in CF 7.02 - not saying that it's a best practice or that the engineers have checked it out.  That said it is a very common use case if you are trying to provide safe concurrent access to a bean property's getter method.</description>
		<dc:creator>Robin Hilliard</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-04-27T22:02:26</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p71.htm#39249">
		<title>coldfusion/6.1/htmldocs/tags-p71.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p71.htm#39249</link>
		<description>&lt;CFRETURN&gt; within &lt;CFLOCK&gt;&lt;br /&gt;&lt;br /&gt;Do you mean it's not good practice or it produces an error, i.e., the lock is not released?</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-09-07T09:05:05</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p71.htm#24964">
		<title>coldfusion/6.1/htmldocs/tags-p71.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p71.htm#24964</link>
		<description>It should be noted that functions cannot return a value from within a cflock. The following is a simple example to demonstrate my point.&lt;br /&gt;&lt;br /&gt;&lt;cfoutput&gt;#getVar(&quot;uservo&quot;)#&lt;/cfoutput&gt;&lt;br /&gt;&lt;br /&gt;&lt;cffunction name=&quot;getVar&quot; access=&quot;public&quot; returntype=&quot;any&quot; output=&quot;false&quot;&lt;br /&gt;	displayname=&quot;&quot; hint=&quot;Retrieves a variable from the session.&quot;&gt;&lt;br /&gt;	&lt;cfargument name=&quot;varName&quot; type=&quot;variablename&quot; required=&quot;true&quot; &lt;br /&gt;		displayname=&quot;&quot; hint=&quot;Variable to retrieve from session.&quot; /&gt; &lt;br /&gt;	&lt;br /&gt;	&lt;cflock name=&quot;readSessionVariable&quot; timeout=&quot;10&quot; type=&quot;readonly&quot;&gt;&lt;br /&gt;		&lt;cfif structKeyExists(session,arguments.varName)&gt;&lt;br /&gt;			&lt;cfreturn evaluate(&quot;session.&quot; &amp; arguments.varName)/&gt;&lt;br /&gt;		&lt;/cfif&gt;&lt;br /&gt;	&lt;/cflock&gt;&lt;br /&gt;	&lt;cfdump var=&quot;qadfsdf&quot;&gt;&lt;cfabort &gt;&lt;br /&gt;	&lt;cfthrow message=&quot;Element #arguments.varName# is undefined in Session.&quot; type=&quot;session&quot;/&gt;&lt;br /&gt;&lt;br /&gt;	&lt;cfreturn/&gt;&lt;br /&gt;&lt;/cffunction&gt;</description>
		<dc:creator>JButter</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-12-04T22:37:25</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p71.htm#16499">
		<title>coldfusion/6.1/htmldocs/tags-p71.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p71.htm#16499</link>
		<description>This page should indicate that if you set timeout=&quot;0&quot;, the timeout is determined by the &quot;Timeout Requests after x&quot; setting in the ColdFusion MX Administrator Settings page, if that setting is enabled. If the Administrator &quot;Timeout Requests after x&quot; setting is not enabled and you set the timeout attribute to 0, ColdFusion can wait indefinitely to obtain the lock.&lt;br /&gt;&lt;br /&gt;Also, in the first deadlock example, it is not obvious that the line with the two Deadlock: entries is part of the table and has two columns.</description>
		<dc:creator>halL</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-06-10T07:05:45</dc:date>
	</item>
	</rdf:RDF>

