System.SysUtils.TMultiReadExclusiveWriteSynchronizer.BeginRead

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure BeginRead;

C++

void __fastcall BeginRead();

Properties

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

Description

Allows a thread to read from the protected memory when it is safe to do so.

Call BeginRead before reading from the memory protected by the multi-read exclusive-write synchronizer. BeginRead does not return until there are no other threads writing to the memory. After calling BeginRead, other threads can be granted read access to the protected memory by the BeginRead method. However, any thread asking for write permission by calling BeginWrite must wait until all reading threads have called EndRead.

See Also