System.TMonitor.Wait

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

class function Wait(const AObject: TObject; Timeout: Cardinal): Boolean; overload; static;
class function Wait(const AObject, ALock: TObject; Timeout: Cardinal): Boolean; overload; static;

C++

static bool __fastcall Wait(TObject* const AObject, unsigned Timeout)/* overload */;
static bool __fastcall Wait(TObject* const AObject, TObject* const ALock, unsigned Timeout)/* overload */;

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.pas
System.hpp
System TMonitor

Description

Supprime le verrou sur l'objet spécifié et place le thread appelant dans la file d'attente pendant la durée spécifiée.

Utilisez la méthode Wait pour supprimer le verrou sur l'objet spécifié et aussi pour placer le thread appelant dans la file d'attente pendant la durée spécifiée dans le paramètre Timeout. Le thread appelant est ainsi bloqué jusqu'à ce qu'il soit de nouveau capable de verrouiller AObject.

Voir aussi