Topic Path: Symbol Reference > Classes > TIdThreadSafeDouble Class > TIdThreadSafeDouble Methods > Add Method
ContentsIndexHome
PreviousUpNext
TIdThreadSafeDouble.Add Method

Adds a value to the existing value for the thread-safe data type.

procedure Add(
    const AValue: Double
);
Parameters 
Description 
AValue 
Value to add to the existing value. 

Add is a procedure used to add the value indicated in AValue to the existing value for the thread-safe data type. 

Add calls Lock to enable resource protection for the thread-safe data type, and increments Value by the amount indicated in AValue. 

Add calls Unlock to disable resource protection for the thread-safe data type. 

Use Subtract to decrement the thread-safe data type by a given amount.

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