System.SyncObjs.TLightweightSemaphore.Create
Delphi
constructor Create(AInitialCount: Integer; AMaxCount: Integer = MaxInt);
C++
__fastcall TLightweightSemaphore(int AInitialCount, int AMaxCount);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | System.SyncObjs.pas System.SyncObjs.hpp |
System.SyncObjs | TLightweightSemaphore |
Description
Instantiates and initializes a TLightweightSemaphore object.
You can specify the initial and maximum number of threads that can acquire the TLightweightSemaphore object.