System.Threading.SpinWait.Reset Method

Resets the spin counter.

Syntax

public void Reset ()

Remarks

This makes SpinWait.SpinOnce and SpinWait.NextSpinWillYield behave as though no calls to SpinWait.SpinOnce had been issued on this instance. If a System.Threading.SpinWait instance is reused many times, it may be useful to reset it to avoid yielding too soon.

Requirements

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