Fixed a few typos (#17217)
authorPhil Garcia <phil@thinkedge.com>
Mon, 26 Mar 2018 06:14:00 +0000 (23:14 -0700)
committerJan Kotas <jkotas@microsoft.com>
Mon, 26 Mar 2018 06:14:00 +0000 (23:14 -0700)
src/mscorlib/src/System/Threading/Overlapped.cs
src/mscorlib/src/System/Threading/SpinLock.cs
src/mscorlib/src/System/Threading/WaitHandle.cs

index 8df0192..51df27f 100644 (file)
@@ -95,7 +95,7 @@ namespace System.Threading
 
                 if (helper == null || helper._executionContext == null || helper._executionContext.IsDefault)
                 {
-                    // We got here because of UnsafePack (or) Pack with EC flow supressed
+                    // We got here because of UnsafePack (or) Pack with EC flow suppressed
                     IOCompletionCallback callback = overlapped.UserCallback;
                     callback(errorCode, numBytes, pOVERLAP);
                 }
index 7334f1e..c23cd57 100644 (file)
@@ -337,7 +337,7 @@ namespace System.Threading
                 // Did not acquire lock as owned and timeout is 0 so fail fast
                 return;
             }
-            else //failed to acquire the lock,then try to update the waiters. If the waiters count reached the maximum, jsut break the loop to avoid overflow
+            else //failed to acquire the lock, then try to update the waiters. If the waiters count reached the maximum, just break the loop to avoid overflow
             {
                 if ((observedOwner & WAITERS_MASK) != MAXIMUM_WAITERS)
                 {
index 3c3b89d..2de388d 100644 (file)
@@ -31,7 +31,7 @@ namespace System.Threading
         private const int MAX_WAITHANDLES = 64;
 
 #pragma warning disable 414  // Field is not used from managed.
-        private IntPtr waitHandle;  // !!! DO NOT MOVE THIS FIELD. (See defn of WAITHANDLEREF in object.h - has hardcoded access to this field.)
+        private IntPtr waitHandle;  // !!! DO NOT MOVE THIS FIELD. (See defn of WAITHANDLEREF in object.h - has hard-coded access to this field.)
 #pragma warning restore 414
 
         internal volatile SafeWaitHandle safeWaitHandle;
@@ -228,7 +228,7 @@ namespace System.Threading
         ** Waits for signal from all the objects. 
         ** timeout indicates how long to wait before the method returns.
         ** This method will return either when all the object have been pulsed
-        ** or timeout milliseonds have elapsed.
+        ** or timeout milliseconds have elapsed.
         ** If exitContext is true then the synchronization domain for the context 
         ** (if in a synchronized context) is exited before the wait and reacquired 
         ========================================================================*/
@@ -329,7 +329,7 @@ namespace System.Threading
         ** Waits for notification from any of the objects. 
         ** timeout indicates how long to wait before the method returns.
         ** This method will return either when either one of the object have been 
-        ** signalled or timeout milliseonds have elapsed.
+        ** signaled or timeout milliseconds have elapsed.
         ** If exitContext is true then the synchronization domain for the context 
         ** (if in a synchronized context) is exited before the wait and reacquired 
         ========================================================================*/