Data.DBXPlatform.TDBXSemaphore.Acquire

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function Acquire(Timeout: Int64): Boolean; reintroduce;

C++

HIDESBASE bool __fastcall Acquire(__int64 Timeout);

Propriétés

Type Visibilité  Source Unité  Parent
function public
Data.DBXPlatform.pas
Data.DBXPlatform.hpp
Data.DBXPlatform TDBXSemaphore

Description

Tente d'acquérir un verrou sur le sémaphore dbExpress.

Appelez Acquire depuis le thread qui doit utiliser des unités d'une ressource partagée. Acquire renvoie True si, après le temps d'attente, le sémaphore dbExpress est signalé, False sinon.

Voir aussi