Class ReaderWriterSynchronized<T>
Provides a simpler version of ReaderWriterSynchronized<TWrite, TRead> where the reader and writer are the same object.
Inherited Members
Namespace: InSync
Assembly: InSync.dll
Syntax
public class ReaderWriterSynchronized<T> : ReaderWriterSynchronized<T, T>, ISynchronized<T>, IBareLock<T>, IBareLock where T : class
Type Parameters
Name | Description |
---|---|
T | The type of object. |
Constructors
ReaderWriterSynchronized(ReaderWriterLockSlim, T)
Initializes a ReaderWriterSynchronized<T> with the specified object to protect.
Declaration
public ReaderWriterSynchronized(ReaderWriterLockSlim readerWriterLockSlim, T value)
Parameters
Type | Name | Description |
---|---|---|
ReaderWriterLockSlim | readerWriterLockSlim | The |
T | value | The object to protect. |