TSimpleRWSync class
Read/Write synchronizing object.
Declaration
TSimpleRWSync = class(TInterfacedObject)Inheritance
- TSimpleRWSync
- TInterfacedObject
- 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
Create | public | Create a new instance of TSimpleRWSync. |
Destroy | public | Removes the TSimpleRWSync instance from memory. |
Beginwrite | public | Acquire a write lock. |
Endwrite | public | Release the write lock. |
Beginread | public | Acquire a read lock. |
Endread | public | Release 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.
