Sign in Join
FPDoc Onlineexperiment

TSimpleRWSync class

In unit sysutils

Read/Write synchronizing object.

Declaration

pascal
TSimpleRWSync = class(TInterfacedObject)

Inheritance

  1. TSimpleRWSync
  2. TInterfacedObject
  3. TObject

Description

TSimpleRWSync implements a simple read/write locking mechanism. It controls access to an object: only a single thread is allowed access to an object for either read or write operations.

Access is controlled through a single critical section.

See also

Methods

CreatepublicCreate a new instance of TSimpleRWSync.
DestroypublicRemoves the TSimpleRWSync instance from memory.
BeginwritepublicAcquire a write lock.
EndwritepublicRelease the write lock.
BeginreadpublicAcquire a read lock.
EndreadpublicRelease the read lock.

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.