[MonoDevelop] Monitor.Wait return false immediately on Mono Runtime

mono mono at webkai.net
Sun Sep 18 16:02:55 EDT 2011


I post this issue  to mono bugzilla.
We may get a opinion about this issue.

http://bugzilla.xamarin.com/show_bug.cgi?id=883


> Hello Tom,
>
> thank you for that hint - I reread MSDN and realized that I must have had 
> confused something.
>
> It is some time in the past since I worked with that and I assume I mixed 
> it up with ManualResetEvents I missused that kind with lock objects on 
> .NET
>
>
> Sorry for confusion mono at webkai.net!
>
> Regards,
> 7even
>
>
> Am 18.09.2011, 21:17 Uhr, schrieb Tom Spink <tspink at gmail.com>:
>
>> Monitor.Wait is supposed to be used under lock, because it atomically
>> releases the lock, and puts the thread to sleep.
>>
>> Take a look at the MSDN documentation.
>>
>> I've not yet had a chance to debug the posted code, but by eye, it 
>> actually
>> looks race free... Based on the definition of the locking primitives.
>>
>> Tom.
>> On Sep 18, 2011 5:22 PM, "Nicolas Krzywinski" <opensource at site7even.de>
>> wrote:
>>
>
>
> -- 
> www.site7even.de | www.nskcomputing.de 



More information about the Monodevelop-list mailing list