Concurrency Confusion

"岩倉 澪" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Aug 4 03:33:43 PDT 2015


On Tuesday, 4 August 2015 at 08:36:26 UTC, John Colvin wrote:
> Do you mean this instead?
>
> spawn(&fooPtrToBarArr, foo, bar);

Yep, that was a typo when writing up the post!

> Anyway, you need to use shared, not __gshared, then it should 
> work.

I have been wary of shared because of: 
https://p0nce.github.io/d-idioms/#The-truth-about-shared


More information about the Digitalmars-d-learn mailing list