There IS a new thread scope, Damon talks about it in the readme that
comes with the files (and on his blog?).  You reference it by the name
of the scope, which you set in the name attribute of the cfthread tag.

So in your example, instead of doing:
<cfset x = "Dan">
You'd want to do:
<cfset Thread_1.x = "Dan">

However, as you probably saw from my post, I haven't been able to get
the cfthread/cfjoin stuff to work in my environment, so I'm not sure how
well any of this works.

> -----Original Message-----
> From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED] 
> Sent: Friday, July 21, 2006 1:13 PM
> 
> >I hope so, and maybe Damon will respond, but I know his blog 
> post says
> >that they have no plans to support this proof of concept code in the
> >future, and they have no plans to add it to a future release.  But I
> >know that's probably just avoiding a 'future looking 
> statement', so my
> >guess is it will be in some future release.  :)
> 
> Right now there's some threading/synchronization issues with 
> variables, so
> you have to be very careful when using the tags.
> 
> For example:
> 
> <cfthread name="Thread_1">
>       <cfset x = "Dan" />
> </cfthread>
> 
> <cfthread name="Thread_2">
>       <cfset x = "Switzer" />
> </cfthread>
> 
> <cfjoin thread="Thread_1" />
> <cfjoin thread="Thread_2" />
> 
> The variable "x" at this point could be anything--because you 
> don't know
> which thread processed in which order. That's actually to be 
> expected. 

This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law. If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, distribution, 
or use of the information contained herein (including any reliance thereon) is 
STRICTLY PROHIBITED. If you received this transmission in error, please 
immediately contact the sender and destroy the material in its entirety, 
whether in electronic or hard copy format. Thank you. A1.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247337
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to