[dmd-concurrency] A synchronized storage class?
Walter Bright
walter at digitalmars.com
Sun Jan 10 00:41:01 PST 2010
Also, adding a synchronized qualifier works only for variables, and not
for other lvalues (like *p).
Andrei Alexandrescu wrote:
> Adding a "synchronized" qualifier (with the semantics of tail-shared)
> has been discussed before. Our interim conclusion was that there is
> enough information inside synchronized methods to dispense with that
> particular qualifier.
>
> We would very much like to _not_ add new qualifiers unless absolutely
> necessary. Your examples don't express that necessity - if you simply
> remove the "synchronized" qualifier off i and j, the compiler has
> enough information to do what's needed.
>
>
More information about the dmd-concurrency
mailing list