ReaderWriterLock Members
Collapse the table of content
Expand the table of content

ReaderWriterLock Members

ReaderWriterLock overview

Public Constructors

public constructorReaderWriterLock Constructor Initializes a new instance of the ReaderWriterLock class.

Public Properties

public propertyIsReaderLockHeld Gets a value indicating whether the current thread holds a reader lock.
public propertyIsWriterLockHeld Gets a value indicating whether the current thread holds the writer lock.
public propertyWriterSeqNum Gets the current sequence number.

Public Methods

public methodAcquireReaderLock Overloaded. Acquires a reader lock.
public methodAcquireWriterLock Overloaded. Acquires the writer lock.
public methodAnyWritersSince Indicates whether the writer lock has been granted to any thread since the sequence number was obtained.
public methodDowngradeFromWriterLock Restores the lock status of the thread to what it was before UpgradeToWriterLock was called.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodReleaseLock Releases the lock, regardless of the number of times the thread acquired the lock.
public methodReleaseReaderLock Decrements the lock count.
public methodReleaseWriterLock Decrements the lock count on the writer lock.
public methodRestoreLock Restores the lock status of the thread to what it was before calling ReleaseLock.
public methodToString (inherited from Object) Returns a String that represents the current Object.
public methodUpgradeToWriterLock Overloaded. Upgrades a reader lock to the writer lock.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

ReaderWriterLock Class | System.Threading Namespace

© 2016 Microsoft