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

Regan Heath regan at netmail.co.nz
Fri Jun 1 07:53:29 PDT 2012


On Fri, 01 Jun 2012 15:34:20 +0100, Steven Schveighoffer  
<schveiguy at yahoo.com> wrote:

> On Fri, 01 Jun 2012 10:09:01 -0400, deadalnix <deadalnix at gmail.com>  
> wrote:
>
>
>> I think it is unrealistic to prevent all deadlock, unless you can come  
>> up with a radically new approach.
>>
>> It is still possible to provide interface that prevent common traps.
>
> Right, the idea is not to exterminate all deadlock, it's to *make it  
> possible to* prevent deadlock.  Currently, it's not possible unless you  
> avoid using synchronized(this).

What he ^ said :)

R


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


More information about the Digitalmars-d mailing list