The members of System.Threading.ReaderWriterLockSlim are listed below.
See Also: Inherited members from System.Object
Initializes a new instance of the System.Threading.ReaderWriterLockSlim class with default property values. | ||
Initializes a new instance of the System.Threading.ReaderWriterLockSlim class, specifying the lock recursion policy. |
[read-only] | CurrentReadCount | int.
Gets the total number of unique threads that have entered the lock in read mode. |
[read-only] | IsReadLockHeld | bool.
Gets a value that indicates whether the current thread has entered the lock in read mode. |
[read-only] | IsUpgradeableReadLockHeld | bool.
Gets a value that indicates whether the current thread has entered the lock in upgradeable mode. |
[read-only] | IsWriteLockHeld | bool.
Gets a value that indicates whether the current thread has entered the lock in write mode. |
[read-only] | RecursionPolicy | LockRecursionPolicy.
Gets a value that indicates the recursion policy for the current System.Threading.ReaderWriterLockSlim object. |
[read-only] | RecursiveReadCount | int.
Gets the number of times the current thread has entered the lock in read mode, as an indication of recursion. |
[read-only] | RecursiveUpgradeCount | int.
Gets the number of times the current thread has entered the lock in upgradeable mode, as an indication of recursion. |
[read-only] | RecursiveWriteCount | int.
Gets the number of times the current thread has entered the lock in write mode, as an indication of recursion. |
[read-only] | WaitingReadCount | int.
Gets the total number of threads that are waiting to enter the lock in read mode. |
[read-only] | WaitingUpgradeCount | int.
Gets the total number of threads that are waiting to enter the lock in upgradeable mode. |
[read-only] | WaitingWriteCount | int.
Gets the total number of threads that are waiting to enter the lock in write mode. |
Dispose()
| ||
EnterReadLock()
| ||
EnterUpgradeableReadLock()
| ||
EnterWriteLock()
| ||
ExitReadLock()
| ||
ExitUpgradeableReadLock()
| ||
ExitWriteLock()
| ||
TryEnterReadLock(int)
| ||
TryEnterReadLock(TimeSpan)
| ||
TryEnterUpgradeableReadLock(int)
| ||
TryEnterUpgradeableReadLock(TimeSpan)
| ||
TryEnterWriteLock(int)
| ||
TryEnterWriteLock(TimeSpan)
|