System.SyncObjs.TCountdownEvent.TryAddCount
Delphi
function TryAddCount(Count: Integer = 1): Boolean;
C++
bool __fastcall TryAddCount(int Count = 0x1);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.SyncObjs.pas System.SyncObjs.hpp |
System.SyncObjs | TCountdownEvent |
Description
TryAddCount attempts to increment the CurrentCount value.
Calling the TryAddCount method will attempt to increment the CurrentCount value with the number specified by the Count parameter.
By default, the Count parameter is 1.
Note: TryAddCount returns True if the CurrentCount value is greater than 0 and the
Countwas added. If CurrentCount is already zero, it returns False.