API:System.SyncObjs.TSemaphore.Release

From RAD Studio API Documentation

Delphi

procedure Release; overload; override;
function Release(AReleaseCount: Integer): Integer; reintroduce; overload;

C++

virtual void __fastcall Release(void)/* overload */;
HIDESBASE int __fastcall Release(int AReleaseCount)/* overload */;

Properties

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

Description

Provides the interface for a method that releases the synchronization object for use by other threads. {{#multireplace:System.SyncObjs.TSemaphore.Release|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:System.SyncObjs.TSynchroObject.Release|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:System.SyncObjs.TSynchroObject.Release|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

Provides the interface for a method that releases the synchronization object for use by other threads.

Call Release from a thread that is finished using the synchronization object. The Release method for TSynchroObject does nothing other than provide the interface for a method that can unbind the synchronization object from the calling thread.

See Also