Hows about if we had something like:

<cfthread name="name" result="myResultStruct">

This would be similar to CFQUERY's result attribute and thread-safe.

M!ke 

-----Original Message-----
From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 3:56 PM
To: CF-Talk
Subject: RE: CFTHREAD and CFJOIN Proof of Concept Tags Posted

>> The problem is when your threads are named dynamically, there's no 
>> way to reliable get the thread name.
>
>What about using evaluate(), or thrd["#i#"], or <cfset "thrd#i#" = 
>...>?

The problem is the variable "i" can be read/written to from any of the
spawned threads. This means the value of "thrd#i#" won't always
correlate to the actual thread number (since it's evaluated inside the
thread, inside the loop, the value of "i" keeps changing.)

-Dan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:247379
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to