Author: jackson
Date: 2005-04-19 16:52:09 -0400 (Tue, 19 Apr 2005)
New Revision: 43293
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XEventQueue.cs
Log:
* XEventQueue.cs: Lock when getting the lockqueu size.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-04-19 20:49:14 UTC (rev 43292)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-04-19 20:52:09 UTC (rev 43293)
@@ -1,3 +1,7 @@
+2005-04-19 Jackson Harper <[EMAIL PROTECTED]>
+
+ * XEventQueue.cs: Lock when getting the lockqueu size.
+
2005-04-19 Peter Bartok <[EMAIL PROTECTED]>
* XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XEventQueue.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XEventQueue.cs
2005-04-19 20:49:14 UTC (rev 43292)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XEventQueue.cs
2005-04-19 20:52:09 UTC (rev 43293)
@@ -29,7 +29,11 @@
}
public int Count {
- get { return xqueue.Count + lqueue.Count; }
+ get {
+ lock (lqueue) {
+ return xqueue.Count + lqueue.Count;
+ }
+ }
}
public void Enqueue (XEvent xevent)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches