Has anyone tried this? It looks very cool...

1) To start a thread:

  <CFTHREAD name="th1" key1="some key" key2="another">
            <!--- any cfml code here --->
            <CFSET x = attributes.key1>
            <CFSET y = attributes.key2>
            <!--- x and y are local to the thread and will not be visible
outside the thread --->
            <!--- do something --->
            <CFSET thread.msg = x & y>
  </CFTHREAD>

This will spawn a new thread and any content between <CFTHREAD> tag will be
invoked inside that new thread.

2) If you want to wait for this thread to finish, you can use

   <CFJOIN thread="th1">

Apparently not for production use but hopefully it'll be in CF8? All they
need is a ton of developers to say YES..

http://www.dcooper.org/blog/client/index.cfm?mode=entry&entry=A71F310C-4E22-
1671-5E287AE8918A048B

Joel


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to