synchronized (this[.classinfo]) in druntime and phobos

Jonathan M Davis jmdavisProg at gmx.com
Mon May 28 16:46:02 PDT 2012


On Tuesday, May 29, 2012 01:38:25 Alex Rønne Petersen wrote:
> I should probably add that Java learned it long ago, and yet we adopted
> it anyway... blergh.

The "lesson learned" from Java that TDPL enumerates is the mistake of having 
synchronized on functions rather than entire classes, but clearly even that is 
currently TDPL-only and not actually properly implemented yet.

- Jonathan M Davis


More information about the Digitalmars-d mailing list