Skip to content

Commit 72b8248

Browse files
Fix Thread.cs comment (#181)
Fix warning for Thread.Sleep
1 parent 3591a0e commit 72b8248

File tree

1 file changed

+1
-1
lines changed
  • nanoFramework.CoreLibrary/System/Threading

1 file changed

+1
-1
lines changed

nanoFramework.CoreLibrary/System/Threading/Thread.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public static void Sleep(TimeSpan timeout)
156156
/// <param name="iterations">A 32-bit signed integer that defines how long a thread is to wait.</param>
157157
/// <remarks>
158158
/// The <see cref="SpinWait"/> method is useful for implementing locks. Classes in the .NET Framework, such as <see cref="Monitor"/> use this method internally. <see cref="SpinWait"/> essentially puts the processor into a very tight loop, with the loop count specified by the <paramref name="iterations"/> parameter. The duration of the wait therefore depends on the speed of the processor.
159-
/// Contrast this with the <see cref="Sleep"/> method. A thread that calls <see cref="Sleep"/> yields the rest of its current slice of processor time, even if the specified interval is zero. Specifying a non-zero interval for <see cref="Sleep"/> removes the thread from consideration by the thread scheduler until the time interval has elapsed.
159+
/// Contrast this with the <see cref="Sleep(int)"/> method. A thread that calls <see cref="Sleep(int)"/> yields the rest of its current slice of processor time, even if the specified interval is zero. Specifying a non-zero interval for <see cref="Sleep(int)"/> removes the thread from consideration by the thread scheduler until the time interval has elapsed.
160160
/// </remarks>
161161
[MethodImpl(MethodImplOptions.InternalCall)]
162162
public static extern void SpinWait(int iterations);

0 commit comments

Comments
 (0)