Explorar el Código

[threads] fixed start at time

Exilon hace 4 años
padre
commit
ee974f3d03
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      Quick.Threads.pas

+ 3 - 2
Quick.Threads.pas

@@ -826,8 +826,9 @@ end;
 destructor TThreadedQueueList<T>.Destroy;
 begin
   DoShutDown;
-  fQueueLock.Free;
   fQueueCondVar.Free;
+  fQueueLock.Free;
+  //fQueueCondVar.Free;
   fQueue.Free;
   inherited;
 end;
@@ -1879,7 +1880,7 @@ begin
   Result := Self;
   ClearSchedule;
   fScheduleMode := TScheduleMode.smRunOnce;
-  fStartDate := ChangeDateOfADay(Now(),aHour,aMinute,aSecond);
+  fStartDate := ChangeTimeOfADay(Now(),aHour,aMinute,aSecond);
   fNextExecution := fStartDate;
 end;