System.TMonitor.Exit
Delphi
class procedure Exit(const AObject: TObject); overload; static;
C++
static void __fastcall Exit(TObject* const AObject)/* overload */;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
procedure function |
public | System.pas System.hpp |
System | TMonitor |
Description
Libère un verrou du thread appelant sur l'objet spécifié.
Utilisez la méthode Exit pour libérer un verrou du thread appelant sur AObject, qui est aussi possédé par le thread. L'objet est libéré de tous les verrous du thread appelant dès que le nombre d'appels du thread à la méthode Exit est égal au nombre d'appels à la méthode Enter.