Synchronized classes have no public members

ponce via Digitalmars-d digitalmars-d at puremagic.com
Tue Oct 13 04:51:00 PDT 2015


On Tuesday, 13 October 2015 at 10:57:55 UTC, Marco Leise wrote:
>
> Yep, I prefer to think it sets of variables that need mutex 
> protection. And these are not generally the set of member 
> fields in a class.

Exactly. And that makes things using synchronized prone to longer 
and more frequent locks.



More information about the Digitalmars-d mailing list