Parcourir la source

* fpmkunit: only start the worker threads once they are fully initialised

git-svn-id: trunk@45989 -
Jonas Maebe il y a 5 ans
Parent
commit
198efe2075
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      packages/fpmkunit/src/fpmkunit.pp

+ 2 - 1
packages/fpmkunit/src/fpmkunit.pp

@@ -3180,10 +3180,11 @@ end;
 
 constructor TCompileWorkerThread.Create(ABuildEngine: TBuildEngine; NotifyMainThreadEvent: PRTLEvent);
 begin
-  inherited Create(false);
+  inherited Create(true);
   FNotifyStartTask := RTLEventCreate;
   FBuildEngine := ABuildEngine;
   FNotifyMainThreadEvent:=NotifyMainThreadEvent;
+  Start;
 end;
 
 destructor TCompileWorkerThread.Destroy;