Appearance
HasLock Method
Definition
- Namespace:
JASE.Extensions - Assembly:
JASE.Concurrency.dll
Overloads
| Name | Description |
|---|---|
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