Author: dick
Date: 2007-11-22 10:16:55 -0500 (Thu, 22 Nov 2007)
New Revision: 90160

Modified:
   trunk/mono/mono/io-layer/ChangeLog
   trunk/mono/mono/io-layer/critical-sections.h
Log:

2007-11-22  Dick Porter  <[EMAIL PROTECTED]>

        * critical-sections.h (EnterCriticalSection): Reinstate the
        asserts in the devel branch, so any problems aren't obscured.




Modified: trunk/mono/mono/io-layer/ChangeLog
===================================================================
--- trunk/mono/mono/io-layer/ChangeLog  2007-11-22 15:16:34 UTC (rev 90159)
+++ trunk/mono/mono/io-layer/ChangeLog  2007-11-22 15:16:55 UTC (rev 90160)
@@ -1,5 +1,10 @@
 2007-11-22  Dick Porter  <[EMAIL PROTECTED]>
 
+       * critical-sections.h (EnterCriticalSection): Reinstate the
+       asserts in the devel branch, so any problems aren't obscured.
+
+2007-11-22  Dick Porter  <[EMAIL PROTECTED]>
+
        * versioninfo.c (find_pe_file_resources): Make it work on 64bit
        systems.  Fixes bug 343353.
 

Modified: trunk/mono/mono/io-layer/critical-sections.h
===================================================================
--- trunk/mono/mono/io-layer/critical-sections.h        2007-11-22 15:16:34 UTC 
(rev 90159)
+++ trunk/mono/mono/io-layer/critical-sections.h        2007-11-22 15:16:55 UTC 
(rev 90160)
@@ -34,13 +34,13 @@
 /* These two are perf critical so avoid the wrapper function */
 
 #define EnterCriticalSection(section) do { \
-       /*int ret =*/ mono_mutex_lock(&(section)->mutex);       \
-       /*g_assert (ret == 0);*/                         \
+       int ret = mono_mutex_lock(&(section)->mutex);    \
+       g_assert (ret == 0);                             \
 } while (0)
 
 #define LeaveCriticalSection(section) do { \
-       /*int ret =*/ mono_mutex_unlock(&(section)->mutex);     \
-       /*g_assert (ret == 0);*/                             \
+       int ret = mono_mutex_unlock(&(section)->mutex);      \
+       g_assert (ret == 0);    \
 } while (0)
 
 G_END_DECLS

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to