API:System.SyncObjs.TLightweightSemaphore.Release

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function Release(AReleaseCount: Integer = 1): Integer; reintroduce;

C++

HIDESBASE int __fastcall Release(int AReleaseCount = 0x1);

Propriétés

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

Description

Fournit l'interface pour une méthode qui libère l'objet synchronisation pour qu'il puisse être utilisé par d'autres threads.

System.SyncObjs.TLightweightSemaphore.Release hérite de System.SyncObjs.TSynchroObject.Release. Tout le contenu en-dessous de cette ligne se réfère à System.SyncObjs.TSynchroObject.Release.

Fournit l'interface pour une méthode qui libère l'objet synchronisation pour qu'il puisse être utilisé par d'autres threads.

Appelez la méthode Release depuis un thread qui a terminé d'utiliser l'objet synchronisation. La méthode Release de TSynchroObject ne sert à rien sinon à servir d'interface à une méthode capable d'interrompre la liaison entre l'objet synchronisation et le thread appelant.

Voir aussi