Author: dick
Date: 2007-06-22 08:43:43 -0400 (Fri, 22 Jun 2007)
New Revision: 80549
Modified:
trunk/mono/mono/io-layer/ChangeLog
trunk/mono/mono/io-layer/shared.c
Log:
2007-06-22 Dick Porter <[EMAIL PROTECTED]>
* shared.c: The non-shared mutexes weren't being initialised properly
on macos. Fixes bug 81929.
Modified: trunk/mono/mono/io-layer/ChangeLog
===================================================================
--- trunk/mono/mono/io-layer/ChangeLog 2007-06-22 12:36:53 UTC (rev 80548)
+++ trunk/mono/mono/io-layer/ChangeLog 2007-06-22 12:43:43 UTC (rev 80549)
@@ -1,4 +1,8 @@
+2007-06-22 Dick Porter <[EMAIL PROTECTED]>
+ * shared.c: The non-shared mutexes weren't being initialised properly
+ on macos. Fixes bug 81929.
+
2007-06-13 Randolph Chung <[EMAIL PROTECTED]>
* atomic.h: Enable for all hppa targets.
Modified: trunk/mono/mono/io-layer/shared.c
===================================================================
--- trunk/mono/mono/io-layer/shared.c 2007-06-22 12:36:53 UTC (rev 80548)
+++ trunk/mono/mono/io-layer/shared.c 2007-06-22 12:43:43 UTC (rev 80549)
@@ -450,11 +450,15 @@
munmap (tmp_shared, sizeof(struct _WapiHandleSharedLayout));
}
-static mono_mutex_t noshm_sems[_WAPI_SHARED_SEM_COUNT] =
{MONO_MUTEX_INITIALIZER};
+static mono_mutex_t noshm_sems[_WAPI_SHARED_SEM_COUNT];
static void noshm_semaphores_init (void)
{
- /* No need to do anything */
+ int i;
+
+ for (i = 0; i < _WAPI_SHARED_SEM_COUNT; i++) {
+ mono_mutex_init (&noshm_sems[i], NULL);
+ }
}
static void shm_semaphores_remove (void)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches