ReaderWriterLockSlim.ExitReadLock Method ()
Reduces the recursion count for read mode, and exits read mode if the resulting count is 0 (zero).
Assembly: System.Core (in System.Core.dll)
The current thread has not entered the lock in read mode.
This method is not sensitive to recursion order. For example, if a thread enters a lock in upgradeable mode and then enters the lock in read mode, the order in which the thread exits the two modes does not matter. If a lock allows recursion, a thread can enter the lock in write mode and then enter it recursively in read mode; the order in which the thread exits read mode and write mode does not matter.
Exiting the lock might signal other waiting threads.
This code is part of a larger example provided for the ReaderWriterLockSlim class.
Available since 8
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Available since 8.1