System.Threading.ReaderWriterLock Members

The members of System.Threading.ReaderWriterLock are listed below.

See Also: Inherited members from System.Runtime.ConstrainedExecution.CriticalFinalizerObject

Public Constructors

Initializes a new instance of the System.Threading.ReaderWriterLock class.

Public Properties

[read-only]
IsReaderLockHeldbool.

Gets a value indicating whether the current thread holds a reader lock.

[read-only]
IsWriterLockHeldbool.

Gets a value indicating whether the current thread holds the writer lock.

[read-only]
WriterSeqNumint.

Gets the current sequence number.

Public Methods

AcquireReaderLock(int)

Acquires a reader lock, using an int value for the time-out.

AcquireReaderLock(TimeSpan)

Acquires a reader lock, using a TimeSpan value for the time-out.

AcquireWriterLock(int)

Acquires the writer lock, using an int value for the time-out.

AcquireWriterLock(TimeSpan)

Acquires the writer lock, using a TimeSpan value for the time-out.

AnyWritersSince(int) : bool

Indicates whether the writer lock has been granted to any thread since the sequence number was obtained.

DowngradeFromWriterLock(ref LockCookie)
Documentation for this section has not yet been entered.
Finalize()
Documentation for this section has not yet been entered.
ReleaseLock() : LockCookie

Releases the lock, regardless of the number of times the thread acquired the lock.

ReleaseReaderLock()

Decrements the lock count.

ReleaseWriterLock()

Decrements the lock count on the writer lock.

RestoreLock(ref LockCookie)
Documentation for this section has not yet been entered.
UpgradeToWriterLock(int) : LockCookie

Upgrades a reader lock to the writer lock, using an Int32 value for the time-out.

UpgradeToWriterLock(TimeSpan) : LockCookie

Upgrades a reader lock to the writer lock, using a TimeSpan value for the time-out.