System.SyncObjs.TInterlocked.Increment
Delphi
class function Increment(var Target: Integer): Integer; overload; static; inline;
class function Increment(var Target: Cardinal): Cardinal; overload; static; inline;
class function Increment(var Target: Int64): Int64; overload; static; inline;
class function Increment(var Target: UInt64): UInt64; overload; static; inline;
C++
static int __fastcall Increment(int &Target)/* overload */;
static unsigned __fastcall Increment(unsigned &Target)/* overload */;
static __int64 __fastcall Increment(__int64 &Target)/* overload */;
static unsigned __int64 __fastcall Increment(unsigned __int64 &Target)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SyncObjs.pas System.SyncObjs.hpp |
System.SyncObjs | TInterlocked |
Description
Increments the variable provided as parameter.
There are two overloaded Increment methods. Target is an Integer for the first Increment overload and Int64 for the second.
The method returns the value of the incremented variable in the corresponding type.