mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: Count() in TThreadObjectList
This commit is contained in:
parent
9add69adef
commit
9b49371938
1 changed files with 7 additions and 0 deletions
|
|
@ -73,6 +73,7 @@ type
|
|||
procedure Clear;
|
||||
function Clone: TObjectList;
|
||||
function Add(AObject: TObjectEx): Integer;
|
||||
function Count: Integer;
|
||||
function LockList: TObjectList;
|
||||
procedure UnlockList;
|
||||
end;
|
||||
|
|
@ -141,6 +142,12 @@ begin
|
|||
Result:= FList.Add(AObject);
|
||||
end;
|
||||
|
||||
function TThreadObjectList.Count: Integer;
|
||||
begin
|
||||
// no need to lock
|
||||
Result:= FList.Count;
|
||||
end;
|
||||
|
||||
function TThreadObjectList.LockList: TObjectList;
|
||||
begin
|
||||
Result:= FList;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue