API:System.SyncObjs.TLightweightSemaphore.Release
Delphi
function Release(AReleaseCount: Integer = 1): Integer; reintroduce;
C++
HIDESBASE int __fastcall Release(int AReleaseCount = 0x1);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.SyncObjs.pas System.SyncObjs.hpp |
System.SyncObjs | TLightweightSemaphore |
Description
Provides the interface for a method that releases the synchronization object for use by other threads. {{#multireplace:System.SyncObjs.TLightweightSemaphore.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.