System.SysUtils.IReadWriteSync.BeginWrite

From RAD Studio API Documentation
Revision as of 23:16, 16 October 2011 by PyBot (talk | contribs) (Scoping Libraries)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Delphi

function BeginWrite: Boolean;

C++

virtual bool __fastcall BeginWrite() = 0 ;

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils IReadWriteSync

Description

Acquires a write lock on the object.

Implement the BeginWrite method to provide read and write locking for your object. By calling BeginWrite, a thread can change the state of the object. BeginWrite returns True if the lock was acquired successfully or False otherwise. Read and write locks are exclusive; they require that no other thread holds a read or read/write lock on the object.

See Also