System.SyncObjs.TInterlocked.Increment

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function Increment(var Target: Integer): Integer; overload; static; inline;
class function Increment(var Target: Int64): Int64; overload; static; inline;

C++

static int __fastcall Increment(int &Target)/* overload */;
static __int64 __fastcall Increment(__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.

See Also