std.concurrency, speed, etc.

Jonathan M Davis jmdavisProg at gmx.com
Fri Feb 4 23:34:29 PST 2011


On Friday 04 February 2011 16:09:08 Sean Kelly wrote:
> Adam Conner-Sax Wrote:
> > 1) I couldn't get the synchronized class version (as opposed to using
> > synchronized statements in the functions) to run.  It would hang in odd
> > ways.
> > 
> >  This may be related to a bug I reported earlier (and Sean was helpful
> >  enough
> > 
> > to fix!) so this may be moot.
> 
> 'synchronized' as a class label may not be implemented in the compiler yet.
>  I'd stick to explicitly labeling methods are 'synchronized' for now.

IIRC, according to TDPL, it's supposed to be the whole class or non if it, not a 
per-function thing. So, if that's not how it works at the moment, that it's 
another of the things that hasn't been fixed to match TDPL yet.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list