Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ReaderWriterLockSlim Properties

The ReaderWriterLockSlim type exposes the following members.

  NameDescription
Public property CurrentReadCount Gets the total number of unique threads that have entered the lock in read mode.
Public property IsReadLockHeld Gets a value that indicates whether the current thread has entered the lock in read mode.
Public property IsUpgradeableReadLockHeld Gets a value that indicates whether the current thread has entered the lock in upgradeable mode.
Public property IsWriteLockHeld Gets a value that indicates whether the current thread has entered the lock in write mode.
Public property RecursionPolicy Gets a value that indicates the recursion policy for the current ReaderWriterLockSlim object.
Public property RecursiveReadCount Gets the number of times the current thread has entered the lock in read mode, as an indication of recursion.
Public property RecursiveUpgradeCount Gets the number of times the current thread has entered the lock in upgradeable mode, as an indication of recursion.
Public property RecursiveWriteCount Gets the number of times the current thread has entered the lock in write mode, as an indication of recursion.
Public property WaitingReadCount Gets the total number of threads that are waiting to enter the lock in read mode.
Public property WaitingUpgradeCount Gets the total number of threads that are waiting to enter the lock in upgradeable mode.
Public property WaitingWriteCount Gets the total number of threads that are waiting to enter the lock in write mode.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.