Refactoring IState - ISignal

This commit is contained in:
Michael Schimmel
2025-06-24 09:24:37 +02:00
parent a3da63ad6a
commit 6ea0f94e36
11 changed files with 120 additions and 118 deletions
+2 -2
View File
@@ -197,7 +197,7 @@ begin
else
begin
// The job will run when Gate notifies the subscriber returned by Run.
Result := Gate.Subscribe(Run(Proc));
Result := Gate.Signal.Subscribe(Run(Proc));
end;
end;
@@ -361,7 +361,7 @@ begin
lock := TSemaphore.Create(nil, 0, 1, '');
try
{var subscription :=}
State.Subscribe(TMycTaskWait.Create(lock));
State.Signal.Subscribe(TMycTaskWait.Create(lock));
lock.Acquire;
finally
FWaitSemaphores.Push(lock);