Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

SpinWait.NextSpinWillYield Property

Definition

Namespace:
System.Threading
Assemblies:
mscorlib.dll, System.Threading.dll
Assemblies:
netstandard.dll, System.Threading.dll
Assembly:
System.Threading.dll
Assembly:
mscorlib.dll
Assembly:
netstandard.dll
Source:
SpinWait.cs
Source:
SpinWait.cs
Source:
SpinWait.cs
Source:
SpinWait.cs
Source:
SpinWait.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets whether the next call to SpinOnce() will yield the processor, triggering a forced context switch.

public:
 property bool NextSpinWillYield { bool get(); };
public bool NextSpinWillYield { get; }
member this.NextSpinWillYield : bool
Public ReadOnly Property NextSpinWillYield As Boolean

Property 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.

Applies to

See also


Feedback

Was this page helpful?