added Futures

This commit is contained in:
Michael Schimmel
2025-06-02 00:45:30 +02:00
parent ca101a3452
commit 63484cd495
15 changed files with 1625 additions and 4126 deletions
+4 -4
View File
@@ -187,6 +187,10 @@ end;
class operator TMycAtomicStack<T>.Finalize(var Dest: TMycAtomicStack<T>);
begin
Dest.Clear;
if Dest.FSList <> nil then // Check if FSList was initialized
begin
Dest.FSList.Free; // Call instance method Free on FSList via Dest
end;
end;
function TMycAtomicStack<T>.Alloc: PItem;
@@ -210,10 +214,6 @@ begin
FreeMemAligned(item); // Global procedure
item := PopPtr; // Call instance method PopPtr via Dest
end;
if FSList <> nil then // Check if FSList was initialized
begin
FSList.Free; // Call instance method Free on FSList via Dest
end;
end;
function TMycAtomicStack<T>.Pop: T;