System.Threading.ReaderWriterLock: Method Members

The methods of System.Threading.ReaderWriterLock are listed below. For a list of all members, see the ReaderWriterLock Members list.

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

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.