[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Read/Write synchronizing object.
Source position: systhrdh.inc line 27
type TSimpleRWSync = class(TInterfacedObject,IReadWriteSync) |
||
public |
||
constructor Create; virtual; |
|
Create a new instance of TSimpleRWSync. |
destructor Destroy; override; |
|
Removes the TSimpleRWSync instance from memory. |
function Beginwrite; |
|
Acquire a write lock. |
procedure Endwrite; |
|
Release the write lock. |
procedure Beginread; |
|
Acquire a read lock. |
procedure Endread; |
|
Release the read lock. |
end; |
|
Read/Write synchronizing object. |
|
| | ||
|
||
| | ||
|
Base class of all classes. |
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.
|
Standard implementation of a IReadWriteSync interface. |