Assembly: log4net (in log4net.dll) Version: 188.8.131.52-.NET 4.0
public sealed class ReaderWriterLock
Public NotInheritable Class ReaderWriterLock
public ref class ReaderWriterLock sealed
[<SealedAttribute>] type ReaderWriterLock = class end
Thetype exposes the following members.
Acquires a reader lock
Acquires the writer lock
Serves as a hash function for a particular type.(Inherited from Object.)
Gets the Type of the current instance.(Inherited from Object.)
Decrements the lock count
Decrements the lock count on the writer lock
ReaderWriterLock is used to synchronize access to a resource. At any given time, it allows either concurrent read access for multiple threads, or write access for a single thread. In a situation where a resource is changed infrequently, a ReaderWriterLock provides better throughput than a simple one-at-a-time lock, such as Monitor.
If a platform does not support a System.Threading.ReaderWriterLock implementation then all readers and writers are serialized. Therefore the caller must not rely on multiple simultaneous readers.