System.Threading.SpinLock.IsHeldByCurrentThread Property

Gets whether the lock is held by the current thread.

Syntax

public bool IsHeldByCurrentThread { get; }

Value

Documentation for this section has not yet been entered.

Remarks

If the lock was initialized to track owner threads, this will return whether the lock is acquired by the current thread. It is invalid to use this property when the lock was initialized to not track thread ownership.

Requirements

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