Topic Path: Symbol Reference > Classes > TIdThreadSafeInt64 Class > TIdThreadSafeInt64 Methods > Decrement Method > Decrement Method (Int64)
ContentsIndexHome
PreviousUpNext
TIdThreadSafeInt64.Decrement Method (Int64)

Decreases the value for the thread-safe data type.

function Decrement(
    const AValue: Int64
): Int64; overload;
Parameters 
Description 
AValue 
Amount to decrement the data type. 

Cardinal - Value for the data type after decrementing.

Decrement is an overloaded Int64 function used to decrease the value of the thread-safe Int64 data type by the amount indicated in AValue. 

Decrement calls Lock to enable the resource protection capabilities of the object instance prior to updating the associated value for the data type. Decrement calls Unlock to disable resource protection when the value is successfully updated, or an exception is raised. 

Use Increment to increase the value of the thread-safe data type.

TIdThreadSafe.Lock 

TIdThreadSafe.Unlock 

TIdThreadSafeInt64.Decrement

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.