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

Steven Schveighoffer schveiguy at yahoo.com
Fri Jun 1 07:34:20 PDT 2012


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).

-Steve


More information about the Digitalmars-d mailing list