Internet Direct (Indy)
Home
PreviousUpNext
TIdThreadSafeInt64.Increment Method ()

Increases the value for the thread-safe data type.

Pascal
function Increment: Int64; overload;

Int64 - Value for the data type after incrementing.

Increment is an overloaded Int64 function used to increase by 1 the value of the thread-safe Int64 data type. 

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

Use Decrement to decrease by 1 the value of the thread-safe data type.

TIdThreadSafe.Lock 

TIdThreadSafe.Unlock 

TIdThreadSafeInt64.Increment

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.