2D array parallelism

Andrew Klaassen clawsoon at yahoo.com
Sun Jan 26 17:06:52 PST 2014


On Sunday, 26 January 2014 at 20:34:27 UTC, bearophile wrote:

> Do you know that module level variables in D are thread-local? 
> If you don't what that, you have to use __gshared.
>
> Bye,
> bearophile

Perfect, thanks!

If anyone wants to make things easy on stupid people like me,
using a module level variable inside a parallel foreach like I
was could generate a compiler warning.  Not that I'm smart enough
to implement something like that.  :-)

Andrew


More information about the Digitalmars-d-learn mailing list