Skip to content

Commit 5392448

Browse files
authored
Fix typo in SpinOnceCore comment (#116980)
1 parent f77a7f5 commit 5392448

File tree

1 file changed

+1
-1
lines changed
  • src/libraries/System.Private.CoreLib/src/System/Threading

1 file changed

+1
-1
lines changed

src/libraries/System.Private.CoreLib/src/System/Threading/SpinWait.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ private void SpinOnceCore(int sleep1Threshold)
167167
// - When there are no threads to switch to, Yield and Sleep(0) become no-op and it turns the spin loop into a
168168
// busy-spin that may quickly reach the max spin count and cause the thread to enter a wait state, or may
169169
// just busy-spin for longer than desired before a Sleep(1). Completing the spin loop too early can cause
170-
// excessive context switcing if a wait follows, and entering the Sleep(1) stage too early can cause
170+
// excessive context switching if a wait follows, and entering the Sleep(1) stage too early can cause
171171
// excessive delays.
172172
// - If there are multiple threads doing Yield and Sleep(0) (typically from the same spin loop due to
173173
// contention), they may switch between one another, delaying work that can make progress.

0 commit comments

Comments
 (0)