Fixed a couple of comments about ArgumentException on timeout parameters (dotnet...
authorAlfred Myers <git@alfredmyers.com>
Thu, 7 Jun 2018 07:06:45 +0000 (04:06 -0300)
committerJan Kotas <jkotas@microsoft.com>
Thu, 7 Jun 2018 07:06:45 +0000 (00:06 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/f4e09d1898a8eb172e5c286102ef9d1269b38666

src/coreclr/src/System.Private.CoreLib/src/Internal/Runtime/Augments/RuntimeThread.cs
src/coreclr/src/System.Private.CoreLib/src/System/Threading/Monitor.cs

index 4678be6..80c1159 100644 (file)
@@ -175,7 +175,7 @@ namespace Internal.Runtime.Augments
         ** Returns true if the thread died, or false if the wait timed out. If
         ** Timeout.Infinite is given as the parameter, no timeout will occur.
         **
-        ** Exceptions: ArgumentException if timeout < 0.
+        ** Exceptions: ArgumentException if timeout < -1 (Timeout.Infinite).
         **             ThreadInterruptedException if the thread is interrupted while waiting.
         **             ThreadStateException if the thread has not been started yet.
         =========================================================================*/
index dee4118..be7bded 100644 (file)
@@ -105,7 +105,7 @@ namespace System.Threading
         ** becomes equivalent to Enter.
         **
         ** Exceptions: ArgumentNullException if object is null.
-        **             ArgumentException if timeout < 0.
+        **             ArgumentException if timeout < -1 (Timeout.Infinite).
         =========================================================================*/
         // The JIT should inline this method to allow check of lockTaken argument to be optimized out
         // in the typical case. Note that the method has to be transparent for inlining to be allowed by the VM.