[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Standard implementation of a IReadWriteSyncinterface
Source position: systhrdh.inc line 24
type TMultiReadExclusiveWriteSynchronizer = class(TInterfacedObject) |
||
public |
||
constructor Create; virtual; |
|
Create a new instance of the TMultiReadExclusiveWriteSynchronizerclass |
destructor Destroy; override; |
|
Destroys the TMultiReadExclusiveWriteSynchronizerinstance |
function Beginwrite; |
|
Request write access to the resource. |
procedure Endwrite; |
|
Release write access to the resource |
procedure Beginread; |
|
Request read access to the resource |
procedure Endread; |
|
Release read access to the resource |
end; |
|
Standard implementation of a IReadWriteSyncinterface |
|
| | ||
TInterfacedObject |
||
? | ||
TObject |
TMultiReadExclusiveWriteSynchronizeris a default implementation of the IReadWriteSyncinterface. It uses a single mutex to protect access to the read/write resource, resulting in a single thread having access to the resource.
|
Read/Write synchronizer |