System.Threading.ReaderWriterLock.ReleaseReaderLock Method

Decrements the lock count.

Syntax

[System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)]
public void ReleaseReaderLock ()

Remarks

ReaderWriterLock.ReleaseReaderLock decrements the lock count. When the count reaches zero, the lock is released.

Note:

If a thread has the writer lock, calling ReleaseReaderLock has the same effect as calling ReaderWriterLock.ReleaseWriterLock. If a thread has no locks, calling ReleaseReaderLock throws an ApplicationException.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0