synchronized (this[.classinfo]) in druntime and phobos
    Regan Heath 
    regan at netmail.co.nz
       
    Tue May 29 05:16:57 PDT 2012
    
    
  
On Tue, 29 May 2012 13:07:29 +0100, Regan Heath <regan at netmail.co.nz>  
wrote:
> void main()
> {
>    Foo foo = new Foo();
>    lock(foo)
>    {
>      ...statements...
>    }
> }
Apologies..I've been writing more C# than D lately.  "lock" above should  
be "synchronized" for D.
R
-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/
    
    
More information about the Digitalmars-d
mailing list