Namespace: System.Threading
SpinWait
Provides support for spin-based waiting.
Properties (2)
int Count
Gets the number of times SpinOnce has been called on this instance.
Value: Returns an integer that represents the number of times SpinOnce has been called on this instance.
bool NextSpinWillYield
Gets whether the next call to SpinOnce will yield the processor, triggering a forced context switch.
Value: Whether the next call to SpinOnce will yield the processor, triggering a forced context switch.
Methods (2)
void SpinOnce
Performs a single spin.
void Reset
Resets the spin counter.