System.SysUtils.TSimpleRWSync.BeginWrite
Delphi
function BeginWrite: Boolean;
C++
bool __fastcall BeginWrite(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TSimpleRWSync |
Description
Acquires a read/write lock on the object.
Call the BeginWrite method to acquire a read/write lock on the TSimpleRWSync object. By calling BeginWrite, a thread can then change the state of the guarded resource. BeginWrite always returns True. Read/write locks are exclusive; they require that no other thread holds a read or read/write lock on the object.