Sign in Join
FPDoc Onlineexperiment

TMultiReadExclusiveWriteSynchronizer class

In unit sysutils

Standard implementation of a IReadWriteSync interface.

Declaration

pascal
TMultiReadExclusiveWriteSynchronizer = class(TInterfacedObject)

Inheritance

  1. TMultiReadExclusiveWriteSynchronizer
  2. TInterfacedObject
  3. TObject

Description

TMultiReadExclusiveWriteSynchronizer is a default implementation of the IReadWriteSync interface. It uses a single mutex to protect access to the read/write resource, resulting in a single thread having access to the resource.

See also

Properties

RevisionLevelpublic
WriterThreadIDpublic

Methods

ThreadIDtoIndexprotected
GetThreadInfoprotected
RemoveThreadprotected
CreatepublicCreate a new instance of the TMultiReadExclusiveWriteSynchronizer class.
DestroypublicDestroys the TMultiReadExclusiveWriteSynchronizer instance.
BeginwritepublicRequest write access to the resource.
EndwritepublicRelease write access to the resource.
BeginreadpublicRequest read access to the resource.
EndreadpublicRelease read access to the resource.

Inherited

From TInterfacedObject (7)

_AddRef _Release AfterConstruction BeforeDestruction NewInstance QueryInterface RefCount

From TObject (37)

CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.