System.SyncObjs.TLightweightSemaphore
Delphi
TLightweightSemaphore = class(TSynchroObject)
C++
class PASCALIMPLEMENTATION TLightweightSemaphore : public TSynchroObject
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | System.SyncObjs.pas System.SyncObjs.hpp |
System.SyncObjs | System.SyncObjs |
Description
Represents a lightweight implementation of a semaphore.
TLightweightSemaphore should be used where the semaphore count regularly stays above zero. If used in cases when the semaphore count is regularly zero, the performance of this class may be slightly below that of TSemaphore.