[Mono-devel-list] critical-sections.c patch

Dick Porter dick at ximian.com
Thu Aug 28 09:04:39 EDT 2003

On Wed, 2003-08-27 at 16:03, Bernie Solomon wrote:
> Here is a small patch so failure to acquire a critical section is an error
> in particular so that when critical sections aren't initialized properly
> this might be detected easier

Thanks, patch applied (with minor formatting changes.)

> Won't catch things on all platforms (e.g. where zeroes are OK
> for a mutex initial state) but at least shows up for those that matter.

I don't follow this part - pthread_mutex_lock() (mono_mutex_lock() is
just a wrapper) should always return 0 on success.

- Dick

More information about the Mono-devel-list mailing list