using shared effectively in a producer/consumer situation.

Kagamin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Apr 25 06:23:59 PDT 2017


On Sunday, 23 April 2017 at 20:33:48 UTC, Kevin Balbas wrote:
> Is this the correct way to do it?
>  cast to shared, send to main thread, cast away shared?

Yes, as long as the thing is unique, you can cast it to shared or 
immutable just fine.


More information about the Digitalmars-d-learn mailing list