System.TMonitor.Exit

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure Exit(const AObject: TObject); overload; static;

C++

static void __fastcall Exit(TObject* const AObject)/* overload */;

Properties

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

Description

Releases a lock of the calling thread on the specified object.

Use the Exit method to release a lock of the calling thread on AObject, which is also owned by the thread. The object is released from all the locks of the calling thread as soon as the number of the thread's calls to Exit is equal to the number of calls to Enter.

See Also