Resets the spin counter.
Namespace:
System.Threading
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub Reset |
C# |
---|
public void Reset() |
Remarks
This makes SpinOnce()()() and NextSpinWillYield behave as though no calls
to SpinOnce()()() had been issued on this instance. If a SpinWait instance
is reused many times, it may be useful to reset it to avoid yielding too soon.