Does anyone understand how to use "shared" types with concurrency send/receive functions?
crimaniak via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Aug 13 09:40:03 PDT 2017
On Sunday, 13 August 2017 at 11:35:05 UTC, Arek wrote:
> Yeah, I've read this. But conurrency.send cannot pass immutable
> object. The same story with Unique.
Sorry, read this as 'efficient immutable'.
> More over, "shared" looks rather like unfinished concept.
Yes, exactly.
> Anyway, _gshared looks very promising, so I will try to work
> out any approach.
More of this, I think, you can't avoid __gshared for any complex
work. Even mutexes from Phobos doesn't support shared, so I had
to 'cowboy with __gshared' when implementing my site engine.
More information about the Digitalmars-d-learn
mailing list