Skip to content

HasLock Method ​

Definition ​

  • Namespace: JASE.Extensions
  • Assembly: JASE.Concurrency.dll

Overloads ​

NameDescription
bool HasLock(ReaderWriterLockSlim l)Check if current thread has any type of lock
bool HasLock(ReaderWriterLockSlim l, LockType type)Check if current thread has lock of specified type ReaderWriterLockSlim to use in processingType of lock to acquire

bool HasLock(ReaderWriterLockSlim l) ​

csharp
bool HasLock(ReaderWriterLockSlim l)

Check if current thread has any type of lock

Returns ​

Boolean true if any type of lock is currently held

bool HasLock(ReaderWriterLockSlim l, LockType type) ​

csharp
bool HasLock(ReaderWriterLockSlim l, LockType type)

Check if current thread has lock of specified type ReaderWriterLockSlim to use in processingType of lock to acquire

Returns ​

Boolean true if specified type of lock is currently held