NextSpinWillYield Property
Collapse the table of content
Expand the table of content

SpinWait.NextSpinWillYield Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Namespace:  System.Threading
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public ReadOnly Property NextSpinWillYield As Boolean

Property Value

Type: System.Boolean
Whether the next call to SpinOnce will yield the processor, triggering a forced context switch.

On a single-CPU machine, SpinOnce always yields the processor. On machines with multiple CPUs, SpinOnce may yield after an unspecified number of calls.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft