This documentation is archived and is not being maintained.

ReaderWriterLock Methods

The ReaderWriterLock type exposes the following members.

  NameDescription
Public method AcquireReaderLock(Int32) Acquires a reader lock, using an Int32 value for the time-out.
Public method AcquireReaderLock(TimeSpan) Acquires a reader lock, using a TimeSpan value for the time-out.
Public method AcquireWriterLock(Int32) Acquires the writer lock, using an Int32 value for the time-out.
Public method AcquireWriterLock(TimeSpan) Acquires the writer lock, using a TimeSpan value for the time-out.
Public method AnyWritersSince Indicates whether the writer lock has been granted to any thread since the sequence number was obtained.
Public method DowngradeFromWriterLock Restores the lock status of the thread to what it was before UpgradeToWriterLock was called.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Releases all the resources used by the CriticalFinalizerObject class. (Inherited from CriticalFinalizerObject.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ReleaseLock Releases the lock, regardless of the number of times the thread acquired the lock.
Public method ReleaseReaderLock Decrements the lock count.
Public method ReleaseWriterLock Decrements the lock count on the writer lock.
Public method RestoreLock Restores the lock status of the thread to what it was before calling ReleaseLock.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method UpgradeToWriterLock(Int32) Upgrades a reader lock to the writer lock, using an Int32 value for the time-out.
Public method UpgradeToWriterLock(TimeSpan) Upgrades a reader lock to the writer lock, using a TimeSpan value for the time-out.
Top
Show: