Click or drag to resize

InterprocessReaderWriterLock Class

Represents an inter-process reader/writer lock using Semaphore and Mutex native locking mechanisms.
Inheritance Hierarchy
SystemObject
  GSF.ThreadingInterprocessReaderWriterLock

Namespace: GSF.Threading
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public class InterprocessReaderWriterLock : IDisposable
View Source

The InterprocessReaderWriterLock type exposes the following members.

Constructors
 NameDescription
Public methodInterprocessReaderWriterLock(String) Creates a new instance of the InterprocessReaderWriterLock associated with the specified name that identifies a source object needing concurrency locking.
Public methodInterprocessReaderWriterLock(String, Int32) Creates a new instance of the InterprocessReaderWriterLock associated with the specified name that identifies a source object needing concurrency locking.
Top
Properties
 NameDescription
Public propertyMaximumConcurrentLocks Gets the maximum concurrent reader locks allowed.
Top
Methods
 NameDescription
Public methodDispose Releases all the resources used by the InterprocessReaderWriterLock object.
Protected methodDispose(Boolean) Releases the unmanaged resources used by the InterprocessReaderWriterLock object and optionally releases the managed resources.
Public methodEnterReadLock Tries to enter the lock in read mode.
Public methodEnterWriteLock Tries to enter the lock in write mode.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExitReadLock Exits read mode and returns the prior read lock count.
Public methodExitWriteLock Exits write mode.
Protected methodFinalize Releases the unmanaged resources before the InterprocessReaderWriterLock object is reclaimed by GC.
(Overrides ObjectFinalize)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryEnterReadLock Tries to enter the lock in read mode, with an optional time-out.
Public methodTryEnterWriteLock Tries to enter the lock in write mode, with an optional time-out.
Top
Fields
 NameDescription
Public fieldStatic memberDefaultMaximumConcurrentLocks Default maximum concurrent locks allowed for InterprocessReaderWriterLock.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also