synchronized - shared but actually useful

FeepingCreature feepingcreature at gmail.com
Wed Oct 31 10:36:35 UTC 2018


On Wednesday, 31 October 2018 at 10:25:52 UTC, Jonathan M Davis 
wrote:
> synchronized classes really only protect the stuff that sit 
> directly inside the class itself, not what the class' member 
> variables refer to. If they were to fully protect everything 
> inside of it, then you couldn't really pass anything in or out 
> of it.
>
> - Jonathan M Davis

You could pass other synchronized objects, immutable data and 
data by value.

In many project designs, that's really all you need.



More information about the Digitalmars-d mailing list