www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Does synchronized support recursive locking?

reply =?ISO-8859-1?Q?Alex_R=F8nne_Petersen?= <xtzgzorex gmail.com> writes:
What the title says. It seems that core.sync.mutex does, but not sure 
about the synchronized statement.

-- 
- Alex
Mar 13 2012
parent reply "Steven Schveighoffer" <schveiguy yahoo.com> writes:
On Tue, 13 Mar 2012 16:26:08 -0400, Alex R=C3=B8nne Petersen  =

<xtzgzorex gmail.com> wrote:

 What the title says. It seems that core.sync.mutex does, but not sure =

 about the synchronized statement.

Yes. A simple test would have shown you that ;) But it would be good t= o = put this in the docs. -Steve
Mar 14 2012
parent =?UTF-8?B?QWxleCBSw7hubmUgUGV0ZXJzZW4=?= <xtzgzorex gmail.com> writes:
On 14-03-2012 13:24, Steven Schveighoffer wrote:
 On Tue, 13 Mar 2012 16:26:08 -0400, Alex Rønne Petersen
 <xtzgzorex gmail.com> wrote:

 What the title says. It seems that core.sync.mutex does, but not sure
 about the synchronized statement.

Yes. A simple test would have shown you that ;) But it would be good to put this in the docs. -Steve

From experience, trusting tests when it comes to anything related to threads tends to be a bad idea, so I figured it'd be better to ask. :) I'll see about updating the docs. -- - Alex
Mar 14 2012