System.SyncObjs.TLightweightMREW.BeginWrite
Delphi
procedure BeginWrite;
C++
void __fastcall BeginWrite();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.SyncObjs.pas System.SyncObjs.hpp |
System.SyncObjs | TLightweightMREW |
Description
BeginWrite method acquires a lock-in exclusive (writer) mode. It blocks until a lock can be acquired.
Tips and Warnings
Tip: Each BeginWrite call must be paired with an EndWrite call
Warning: Consider that a thread must not request a writer lock if it already has the exclusive lock, otherwise the call will either deadlock (Windows) or fail (POSIX)
Warning: The underlying OS implementation may not be fair. Therefore, a request for an exclusive lock may not be honored while there are actively shared lock requests.