System.SyncObjs.TLightweightMREW.TryBeginWrite
Delphi
function TryBeginWrite: Boolean; {$IF defined(LINUX) or defined(ANDROID)}overload;{$ENDIF}
C++
bool __fastcall TryBeginWrite();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SyncObjs.pas System.SyncObjs.hpp |
System.SyncObjs | TLightweightMREW |
Description
TryBeginWrite tries to acquire a lock in exclusive (writer) mode. It returns True if the lock was acquired. It does not block.
Attention: A single thread cannot recursively acquire exclusive lock multiple times.