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