synchronized with multiple arguments
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Fri May 13 02:17:06 PDT 2016
A reader reminded me (thanks!) that in TDPL synchronized with multiple
argument does the right thing - locks objects in increasing order of
address.
So now to everyone's unpleasant surprise, the sample code in TDPL
compiles and runs, it just has difficult to detect problems.
So regardless of the discussion of the comma operator, synchronized with
multiple arguments should just work.
Is synchronized being lowered to some function calls?
Andrei
More information about the Digitalmars-d
mailing list