Kaynağa Gözat

2003-02-11 Dick Porter <[email protected]>

	* Monitor.cs: Infinite wait is Infinite, not 0 ms

svn path=/trunk/mcs/; revision=11484
Dick Porter 23 yıl önce
ebeveyn
işleme
ebcbf2b2fc

+ 4 - 0
mcs/class/corlib/System.Threading/ChangeLog

@@ -1,3 +1,7 @@
+2003-02-11  Dick Porter  <[email protected]>
+
+	* Monitor.cs: Infinite wait is Infinite, not 0 ms
+
 2003-02-10  Gonzalo Paniagua Javier <[email protected]>
 
 	* Thread.cs: fixed bug #37759.

+ 1 - 1
mcs/class/corlib/System.Threading/Monitor.cs

@@ -162,7 +162,7 @@ namespace System.Threading
 				throw new SynchronizationLockException("Object is not synchronised");
 			}
 
-			return(Monitor_wait(obj, 0));
+			return(Monitor_wait(obj, Timeout.Infinite));
 		}
 
 		public static bool Wait(object obj, int millisecondsTimeout) {