Article about problems & suggestions for D 2.0

Kagamin spam at here.lot
Wed Aug 31 00:37:46 PDT 2011


Sean Kelly Wrote:

> The shared portion, rather than labeling functions as synchronized, uses synchronized internally to make the mutex use as fine-grained as possible.  And the logically unshared portion only synchronizes when accessing the shared data in the object.

What's the difference? Both access shared data and synchronize. If the data accessed is unshared, there should be no problem to do it from shared method - there will be no barriers because the data is unshared, as I understand it.


More information about the Digitalmars-d mailing list