Internet Direct (Indy)
Home
PreviousUpNext
TIdThreadSafeInteger Class

Implements a thread-safe Integer data type.

Pascal
TIdThreadSafeInteger = class(TIdThreadSafe);

TIdThreadSafeInteger is a TIdThreadSafe descendant that implements a thread-safe data type for storing an Integer value. 

TIdThreadSafeInteger relies on TIdCriticalSection for resource protection in multi-threaded applications. 

TIdThreadSafeInteger implements the Value property for reading or writing the Integer value for the data type using resource protection. 

TIdThreadSafeInteger also implements methods that protect write access to Value using Increment and Decrement.

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.