synchronized (this[.classinfo]) in druntime and phobos
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu May 31 02:48:51 PDT 2012
On 5/31/12 2:36 AM, Regan Heath wrote:
> On Wed, 30 May 2012 19:29:39 +0100, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> wrote:
>> You can have deadlocks but with synchronized you can't leak locks or
>> doubly-unlock them. With free mutexes you have all of the above.
>
> I'm not suggesting using free mutexes. I'm suggesting keeping the mutex
> private inside the object.
Ergo, you are suggesting using free mutexes. Your second sentence
destroys the first.
Andrei
More information about the Digitalmars-d
mailing list