title: Scope issue in CFTHREAD
body: <p>I have a application that sends out a few 100k emails each night, so to speed processing added some cfthreads.</p>
  
  <p>This has caused some strange errors, and I've found that a variable created in one thread is being modified by another thread. From the documentation I've read, variables created in one thread should be visible only to that thread?</p>
  
  <p>Made a simple test like so:</p>
  
  <pre><code>&lt;cfthread
      name="thread1"
      action="run"&gt;
  
      &lt;cfsavecontent variable="local.template_body"&gt;
          &lt;cfinclude template="templates\6\2\bulletin_template.cfm"&gt;
      &lt;/cfsavecontent&gt;
  
      &lt;cfset tmpEmailBody = template_body&gt;
  &lt;/cfthread&gt;
  
  &lt;cfthread
      name="thread2"
      action="run"&gt;
  
      &lt;cffile action="append"
              file="C:\inetpub\error1.txt"
              output="#tmpEmailBody#"&gt;        
  &lt;/cfthread&gt;
  </code></pre>
  
  <p>The contents of "tmpEmailBody" successfully get written to the file.</p>
  
  <p>The strange thing is if i remove the cfsavecontent section, and have:
  <code>&lt;cfset tmpEmailBody = "test"&gt;</code>, then the second thread raises and error that tmpEmailBody isnt defined, as I would expect.</p>
  
  <p>Anyone know what's going on here?</p>