SpinWait.SpinOnce Method ()

.NET Framework (current version)

Performs a single spin.

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

public void SpinOnce()

This is typically called in a loop, and may change in behavior based on the number of times a SpinOnce has been called thus far on this instance. Each spin results in the SpinWait method being called. A count is kept of the number of times SpinOnce is called, and after a threshold count is reached, the Yield method is called.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top