Refactoring TFuture

This commit is contained in:
Michael Schimmel
2025-06-03 13:11:59 +02:00
parent 74a7cd71e9
commit 38c9e2830d
9 changed files with 708 additions and 65 deletions
+5
View File
@@ -138,6 +138,8 @@ begin
end;
for var i := 0 to High(FWorkThreads) do
FWorkThreads[i].Start;
FWaitSemaphores.Push( TSemaphore.Create(nil, 0, 1, '') );
end;
destructor TMycTaskFactory.Destroy;
@@ -147,6 +149,9 @@ begin
for var i := High(FWorkThreads) downto 0 do
FWorkThreads[i].Free;
if Assigned(FException) then
FException.Free;
FWorkGate.Free;
FWorkStack.Clear;
inherited Destroy;