System.Threading.SpinLock Members

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

See Also: Inherited members from System.ValueType

Public Constructors

Initializes a new instance of the System.Threading.SpinLock structure with the option to track thread IDs to improve debugging.

Public Properties

[read-only]
IsHeldbool.

Gets whether the lock is currently held by any thread.

[read-only]
IsHeldByCurrentThreadbool.

Gets whether the lock is held by the current thread.

[read-only]
IsThreadOwnerTrackingEnabledbool.

Gets whether thread ownership tracking is enabled for this instance.

Public Methods

Enter(ref bool)
Documentation for this section has not yet been entered.
Exit()

Releases the lock.

Exit(bool)

Releases the lock.

TryEnter(ref bool)
Documentation for this section has not yet been entered.
TryEnter(int, ref bool)
Documentation for this section has not yet been entered.
TryEnter(TimeSpan, ref bool)
Documentation for this section has not yet been entered.