Internet Direct (Indy)
Home
PreviousUpNext
TIdThreadSafeDouble.Add Method

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

Pascal
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.

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.