瀏覽代碼

2004-04-09 Zoltan Varga <[email protected]>

	* Timer.cs: Call the callback immediately if dueTime is 0. Fixes
	#56728.

svn path=/trunk/mcs/; revision=25245
Zoltan Varga 22 年之前
父節點
當前提交
587b8babef
共有 2 個文件被更改,包括 7 次插入0 次删除
  1. 5 0
      mcs/class/corlib/System.Threading/ChangeLog
  2. 2 0
      mcs/class/corlib/System.Threading/Timer.cs

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

@@ -1,3 +1,8 @@
+2004-04-09  Zoltan Varga  <[email protected]>
+
+	* Timer.cs: Call the callback immediately if dueTime is 0. Fixes
+	#56728.
+
 2004-04-08  Jackson Harper  <[email protected]>
 
 	* ReaderWriterLock.cs: Fix tyop

+ 2 - 0
mcs/class/corlib/System.Threading/Timer.cs

@@ -58,6 +58,8 @@ namespace System.Threading
 					if (disposed)
 						return false;
 				}
+				else
+					callback (state);
 
 				return true;
 			}