System.Threading.SpinWait Members

The members of System.Threading.SpinWait are listed below.

See Also: Inherited members from System.ValueType

Public Properties

[read-only]
Countint.

Gets the number of times SpinWait.SpinOnce has been called on this instance.

[read-only]
NextSpinWillYieldbool.

Gets whether the next call to SpinWait.SpinOnce will yield the processor, triggering a forced context switch.

Public Methods

Reset()

Resets the spin counter.

SpinOnce()

Performs a single spin.

static
SpinUntil(Func<bool>)

Spins until the specified condition is satisfied.

static
SpinUntil(Func<bool>, int) : bool

Spins until the specified condition is satisfied or until the specified timeout is expired.

static
SpinUntil(Func<bool>, TimeSpan) : bool

Spins until the specified condition is satisfied or until the specified timeout is expired.