System.SyncObjs.TInterlocked.Decrement

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

static int __fastcall Decrement(int &Target)/* overload */;
static __int64 __fastcall Decrement(__int64 &Target)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.SyncObjs.pas
System.SyncObjs.hpp
System.SyncObjs TInterlocked

Description

Decrements the variable provided as parameter.

There are two overloaded Decrement methods. Target is an Integer for the first Decrement overload and an Int64 for the second one.

The method returns the value of the decremented variable in the corresponding type.

See Also