System.SyncObjs.TLightweightSemaphore.Create
Delphi
constructor Create(AInitialCount: Integer; AMaxCount: Integer = MaxInt);
C++
__fastcall TLightweightSemaphore(int AInitialCount, int AMaxCount);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
constructor | public | System.SyncObjs.pas System.SyncObjs.hpp |
System.SyncObjs | TLightweightSemaphore |
Description
Instancie et initialise un objet TLightweightSemaphore.
Vous pouvez spécifier le nombre initial et maximal de threads qui peuvent acquérir l'objet TLightweightSemaphore.