Test Refactoring of signals
This commit is contained in:
@@ -203,11 +203,11 @@ end;
|
||||
|
||||
function TMycTaskFactory.CreateThread(const Proc: TProc): IMycState;
|
||||
var
|
||||
res: IMycLatch;
|
||||
res: IMycEvent;
|
||||
capturedProc: TProc;
|
||||
begin
|
||||
// Create a latch that will be signaled when the proc finishes
|
||||
res := TLatch.Construct(1); // Changed to use direct static call on TMycLatch
|
||||
res := TEvent.CreateLatch(1);
|
||||
|
||||
capturedProc := Proc; // Capture Proc for the anonymous method
|
||||
CreateAnonymousThread(
|
||||
@@ -309,7 +309,7 @@ begin
|
||||
raise ETaskException.Create('Task factory terminated');
|
||||
|
||||
if not Assigned(Job) then
|
||||
exit(TLatch.Null); // Already correct, uses direct static property on TMycLatch
|
||||
exit(TEvent.Null); // Already correct, uses direct static property on TMycLatch
|
||||
|
||||
// Create a pending job
|
||||
Result := TMycPendingJob.Create(Self, Job);
|
||||
|
||||
Reference in New Issue
Block a user