Author: dick
Date: 2007-08-30 16:33:52 -0400 (Thu, 30 Aug 2007)
New Revision: 85074
Modified:
trunk/mcs/class/corlib/System.Threading/ChangeLog
trunk/mcs/class/corlib/System.Threading/Thread.cs
Log:
2007-08-30 Dick Porter <[EMAIL PROTECTED]>
* Thread.cs: Initialise synch_cs to null now we aren't using it as
a monitor lock
Modified: trunk/mcs/class/corlib/System.Threading/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Threading/ChangeLog 2007-08-30 20:29:02 UTC
(rev 85073)
+++ trunk/mcs/class/corlib/System.Threading/ChangeLog 2007-08-30 20:33:52 UTC
(rev 85074)
@@ -1,3 +1,8 @@
+2007-08-30 Dick Porter <[EMAIL PROTECTED]>
+
+ * Thread.cs: Initialise synch_cs to null now we aren't using it as
+ a monitor lock
+
2007-08-10 Gert Driesen <[EMAIL PROTECTED]>
* Thread.cs: Throw ThreadStateException when retrieving ApartmentState
Modified: trunk/mcs/class/corlib/System.Threading/Thread.cs
===================================================================
--- trunk/mcs/class/corlib/System.Threading/Thread.cs 2007-08-30 20:29:02 UTC
(rev 85073)
+++ trunk/mcs/class/corlib/System.Threading/Thread.cs 2007-08-30 20:33:52 UTC
(rev 85074)
@@ -88,8 +88,8 @@
private IntPtr suspend_event;
private IntPtr suspended_event;
private IntPtr resume_event;
- /* Don't lock on synch_lock in managed code, since it can
result in deadlocks */
- private object synch_lock = new Object();
+ /* Don't lock on synch_cs in managed code, since it can result
in deadlocks */
+ private object synch_cs = null;
private IntPtr serialized_culture_info;
private int serialized_culture_info_len;
private IntPtr serialized_ui_culture_info;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches