TSimpleRWSync
[Properties (by Name)][Methods (by Name)][Events (by Name)]
Read/Write synchronizing object.
Declaration
Source position: systhrdh.inc line 26
Type
  TSimpleRWSync = class (TInterfacedObject, IReadWriteSync)
  private
    crit : TRtlCriticalSection;
  public
    constructor Create;  Virtual;
    destructor Destroy;  Override;
    function Beginwrite : Boolean;
    procedure Endwrite;
    procedure Beginread;
    procedure Endread;
  end
  ;
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.
Members
| Member | Type | Visibility | Description | 
|---|---|---|---|
| Beginread | Method | public | Acquire a read lock | 
| Beginwrite | Method | public | Acquire a write lock | 
| Create | Method | public | Create a new instance of TSimpleRWSync | 
| crit | Field | private | |
| Destroy | Method | public | Removes the TSimpleRWSync instance from memory | 
| Endread | Method | public | Release the read lock | 
| Endwrite | Method | public | Release the write lock | 
Inheritance
| Class | Description | 
|---|---|
| TSimpleRWSync(IReadWriteSync) | Read/Write synchronizing object. | 
See also
| Name | Description | 
|---|---|
| TMultiReadExclusiveWriteSynchronizer | Standard implementation of a IReadWriteSync interface | 
| TRtlCriticalSection | A critical section. |