Indy 9
|
TIdThreadSafeList = class(TThreadList)
function IsCountLessThan(const AValue: Cardinal): Boolean;
IsCountLessThan checks to make sure the current object instance is instantiated proper to retrieving the Cardinal length of the thread list. IsCountLessThan locks the thread list prior to getting the length, and unlocks the threads list immediately after retrieving the Cardinal value.
IsCountLessThan returns True when AValue is amller than the length of the thread-safe list, and False under any other condition.