Edit

Share via


SpinWait.NextSpinWillYield Property

Definition

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