[Mono-dev] Mono on OSX 10.4 (Cocoa and Threading)

Allan Hsu allan at counterpop.net
Fri Sep 2 20:49:15 EDT 2005



On Sep 1, 2005, at 10:52 PM, Frank Bergmann wrote:

> I must say I had trouble creating a test case (since it is a rather  
> big
> project). I found out the following though: Under Win32 I used the  
> Mutex
> class during thread spawning to ensure thread safety. Under OS X these
> Mutex's caused a deadlock. Even after creation the first WaitOne()  
> would
> not return. Writing up a test case did not work out again, as every
> simple use of the Mutex class did what it was supposed to do. So  
> for now
> I removed them and watch my step.
>

I suspect there may be a bug in the mono Mutex/Monitor implementation  
under OS X. I have experienced similar deadlocks. The toy code I  
posted for bug #75558 sometimes exhibits deadlocking behaviour under  
10.4.2:

http://bugs.ximian.com/show_bug.cgi?id=75558

-Allan

--
Allan Hsu <allan at counterpop dot net>
1E64 E20F 34D9 CBA7 1300  1457 AC37 CBBB 0E92 C779




More information about the Mono-devel-list mailing list