Author: dick
Date: 2007-08-31 11:40:49 -0400 (Fri, 31 Aug 2007)
New Revision: 85137
Modified:
trunk/mcs/class/corlib/System.Threading/ChangeLog
trunk/mcs/class/corlib/System.Threading/Thread.cs
Log:
Back out the thread lock changes until they work
Modified: trunk/mcs/class/corlib/System.Threading/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Threading/ChangeLog 2007-08-31 15:23:26 UTC
(rev 85136)
+++ trunk/mcs/class/corlib/System.Threading/ChangeLog 2007-08-31 15:40:49 UTC
(rev 85137)
@@ -1,8 +1,3 @@
-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-31 15:23:26 UTC
(rev 85136)
+++ trunk/mcs/class/corlib/System.Threading/Thread.cs 2007-08-31 15:40:49 UTC
(rev 85137)
@@ -88,8 +88,8 @@
private IntPtr suspend_event;
private IntPtr suspended_event;
private IntPtr resume_event;
- /* Don't lock on synch_cs in managed code, since it can result
in deadlocks */
- private object synch_cs = null;
+ /* Don't lock on synch_lock in managed code, since it can
result in deadlocks */
+ private object synch_lock = new Object();
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