System.SyncObjs.TLightweightMREW.BeginRead

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

procedure BeginRead;

C++

void __fastcall BeginRead();

Propriétés

Type Visibilité  Source Unité  Parent
procedure
function
public
System.SyncObjs.pas
System.SyncObjs.hpp
System.SyncObjs TLightweightMREW


Description

La méthode BeginRead acquiert un verrou en mode partagé (lecture). Elle bloque jusqu'à ce que l'acquisition d'un verrou soit possible. Un thread unique peut acquérir un verrou partagé plusieurs fois de façon récursive.

Conseil: A chaque appel à la méthode BeginRead doit correspondre un appel à EndRead.