System.SyncObjs.TLightweightMREW.TryBeginWrite
Delphi
function TryBeginWrite: Boolean; {$IF defined(LINUX) or defined(ANDROID)}overload;{$ENDIF}
C++
bool __fastcall TryBeginWrite();
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | System.SyncObjs.pas System.SyncObjs.hpp |
System.SyncObjs | TLightweightMREW |
Description
TryBeginWrite essaie d'acquérir un verrou en mode exclusif (écriture). Elle renvoie True si le verrou a été acquis. Elle ne bloque pas.
Attention: Un thread unique ne peut pas acquérir un verrou exclusif plusieurs fois de façon récursive.