Synchronized methods in D2

Era Scarecrow rtcvb32 at yahoo.com
Sun Sep 5 10:37:13 PDT 2010


> Jonathan M Davis:
> > Also, according to TDPL, either your _entire class_ is synchronized, or none of
> > it is. So, synchronized really belongs on the class, not the function, and I
> > wouldn't expect it to compile if only a portion of your functions are
> > synchronized (though I don't know how close the current dmd is to TPDL with
> > regards to synchronized).

  *smacks forehead* Of course. i forgot that detail. I don't work with
multi-threads or synchronized much yet.


More information about the Digitalmars-d-learn mailing list