Hi Neil,<br><br>Thanks for pointing this out.<br><br>A comment has been added to the documentation of this class:<br><br><a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/Code/Common/itkMersenneTwisterRandomVariateGenerator.h?root=Insight&amp;r1=1.8&amp;r2=1.9&amp;sortby=date">http://public.kitware.com/cgi-bin/viewcvs.cgi/Code/Common/itkMersenneTwisterRandomVariateGenerator.h?root=Insight&amp;r1=1.8&amp;r2=1.9&amp;sortby=date</a><br>
<br><a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/Code/Common/itkMersenneTwisterRandomVariateGenerator.h?root=Insight&amp;sortby=date&amp;view=log">http://public.kitware.com/cgi-bin/viewcvs.cgi/Code/Common/itkMersenneTwisterRandomVariateGenerator.h?root=Insight&amp;sortby=date&amp;view=log</a><br>
<br><br>    Regards,<br><br><br>         Luis<br><br><br>------------------------------------<br><div class="gmail_quote">On Wed, Aug 5, 2009 at 11:53 AM, Neil Weisenfeld <span dir="ltr">&lt;<a href="mailto:weisen@crl.med.harvard.edu">weisen@crl.med.harvard.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all,<br>
<br>
Due to bug # 4846 discussed here:<br>
<br>
<a href="http://www.itk.org/pipermail/insight-users/2007-April/021842.html" target="_blank">http://www.itk.org/pipermail/insight-users/2007-April/021842.html</a><br>
<br>
the Mersenne Twister is not thread safe.  A side effect is that the<br>
random iterators are not thread safe.<br>
<br>
Luis&#39;s suggestion to convert the MT back to a normal Object seems the<br>
most sensible, however since this hasn&#39;t happened, maybe it would be<br>
easier to add mutex locks around the few Get*Variate*() calls<br>
affected?  Or can we at least add it to the documentation that these<br>
are not thread safe?<br>
<br>
What do people think?<br>
<br>
<br>
Thanks,<br>
Neil<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br>