Internet Direct (Indy)
Home
PreviousUpNext
TIdThreadSafeBoolean Class

Implements a thread-safe Boolean data type.

Pascal
TIdThreadSafeBoolean = class(TIdThreadSafe);

TIdThreadSafeBoolean is a TIdThreadSafe descendant that implements a thread-safe data type for storing a Boolean value. 

TIdThreadSafeBoolean relies on the inherited TCriticalSection for resource protection in multi-threaded applications. 

TIdThreadSafeBoolean implements the Value property for reading or writing the Boolean value associated with the class instance with resource protection. TIdThreadSafeBoolean also implements methods that protect write access to Value using Toggle.

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.