Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SpinOnce Method
Collapse the table of content
Expand the table of content

SpinWait.SpinOnce Method

.NET Framework 4.6 and 4.5

Performs a single spin.

Namespace:  System.Threading
Assemblies:   System.Threading (in System.Threading.dll)
  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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
© 2015 Microsoft