|
| .NET Framework Class Library |
| SpinWait..::.NextSpinWillYield Property |
| SpinWait Structure See Also Send Feedback |
Gets whether the next call to SpinOnce()()() will yield the processor, triggering a
forced context switch.
Namespace:
System.Threading
Assembly:
System.Threading (in System.Threading.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public ReadOnly Property NextSpinWillYield As Boolean |
| C# |
|---|
public bool NextSpinWillYield { get; } |
Field Value
Whether the next call to SpinOnce()()() will yield the processor, triggering a forced context switch.
Remarks
On a single-CPU machine, SpinOnce()()() always yields the processor. On machines with
multiple CPUs, SpinOnce()()() may yield after an unspecified number of calls.