Synchronized classes have no public members

Sean Kelly via Digitalmars-d digitalmars-d at puremagic.com
Sat Oct 17 09:53:15 PDT 2015


On Friday, 16 October 2015 at 21:54:11 UTC, Jonathan M Davis 
wrote:
> [...]

std.concurrency.MessageBox is an example of why you might mix 
synchronized and non-synchronized data in a class. No methods are 
synchronized though because it's too blunt an instrument. 
Synchronization happens internally at the statement level.


More information about the Digitalmars-d mailing list