SpinWait.SpinOnce Method
Definition
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.
Performs a single spin.
public:
void SpinOnce();
public void SpinOnce();
member this.SpinOnce : unit -> unit
Public Sub SpinOnce ()
Remarks
This method is typically called in a loop and may change in behavior based on the number of times SpinOnce has been called so 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.