synchronized (this[.classinfo]) in druntime and phobos

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu May 31 04:06:45 PDT 2012


On 5/31/12 3:27 AM, Regan Heath wrote:
> On Thu, 31 May 2012 10:49:27 +0100, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> wrote:
>
>> On 5/31/12 2:45 AM, Regan Heath wrote:
>>> Ok, how about you tell us what term you want to use for the current
>>> state of affairs then, because arguing about this is pointless and I'm
>>> happy to use whatever term you deem appropriate (because I couldn't care
>>> less what the term is - as long as we all know what is meant, which I
>>> believe is the case here).
>>
>> The idiom is called "scoped locking".
>
> So.. the mutex is "scoped locking"?

No, the Java-style approach with the synchronized statement etc.

Andrei



More information about the Digitalmars-d mailing list