Indy 9
|
TIdThreadSafeInteger = class(TIdThreadSafe)
TIdThreadSafeInteger relies on the inherited TCriticalSection for resource protection in multi-threaded applications. TIdThreadSafeInteger implements the Value property for reading or writing the Integer value associated with the class instance with resource protection. TIdThreadSafeInteger also implements methods that protect write access to Value using Increment and Decrement.
property Value: Integer;
function Decrement: Integer;
Use Increment to increase by 1 the value of the thread-safe integer data type.
function Increment: Integer;
Use Decrement to decrease by 1 the value of the thread-safe integer data type.