[Insight-users] Mersenne Twister not thread safe and not documented as such
Luis Ibanez
luis.ibanez at kitware.com
Sat Aug 8 11:27:04 EDT 2009
Hi Neil,
Thanks for pointing this out.
A comment has been added to the documentation of this class:
http://public.kitware.com/cgi-bin/viewcvs.cgi/Code/Common/itkMersenneTwisterRandomVariateGenerator.h?root=Insight&r1=1.8&r2=1.9&sortby=date
http://public.kitware.com/cgi-bin/viewcvs.cgi/Code/Common/itkMersenneTwisterRandomVariateGenerator.h?root=Insight&sortby=date&view=log
Regards,
Luis
------------------------------------
On Wed, Aug 5, 2009 at 11:53 AM, Neil Weisenfeld <weisen at crl.med.harvard.edu
> wrote:
> Hi all,
>
> Due to bug # 4846 discussed here:
>
> http://www.itk.org/pipermail/insight-users/2007-April/021842.html
>
> the Mersenne Twister is not thread safe. A side effect is that the
> random iterators are not thread safe.
>
> Luis's suggestion to convert the MT back to a normal Object seems the
> most sensible, however since this hasn't happened, maybe it would be
> easier to add mutex locks around the few Get*Variate*() calls
> affected? Or can we at least add it to the documentation that these
> are not thread safe?
>
> What do people think?
>
>
> Thanks,
> Neil
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090808/434798c4/attachment.htm>
More information about the Insight-users
mailing list