[Opensim-dev] .NET / Mono lock(obj) statement

Homer Horwitz homerhorwitz at googlemail.com
Wed Jan 14 06:57:03 UTC 2009


Hi Diva,

On Wed, Jan 14, 2009 at 5:57 AM, Diva Canto <diva at metaverseink.com> wrote:
> Here's a simplified version of the problem:
>
> lock (a)
> {
>   foo();
> }
>
> void foo()
> {
>  lock (a)
>  {
>    ...
>  }
> }
I just tried that with Mono 2.0.1, and it works correctly (i.e. it
doesn't deadlock). I used an instance variable object a = new object()
for the lock.

> (the real situation is a bit more complicated; foo() involves a
> delegate; but ignore that)
Is this maybe necessary to get the (wrong) result? Or did you use
another Mono version?

Cheers,
  Homer



More information about the Opensim-dev mailing list