mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-03 13:30:55 +02:00
* fpmkunit: only start the worker threads once they are fully initialised
git-svn-id: trunk@45989 -
This commit is contained in:
parent
848ec1d219
commit
198efe2075
@ -3180,10 +3180,11 @@ end;
|
|||||||
|
|
||||||
constructor TCompileWorkerThread.Create(ABuildEngine: TBuildEngine; NotifyMainThreadEvent: PRTLEvent);
|
constructor TCompileWorkerThread.Create(ABuildEngine: TBuildEngine; NotifyMainThreadEvent: PRTLEvent);
|
||||||
begin
|
begin
|
||||||
inherited Create(false);
|
inherited Create(true);
|
||||||
FNotifyStartTask := RTLEventCreate;
|
FNotifyStartTask := RTLEventCreate;
|
||||||
FBuildEngine := ABuildEngine;
|
FBuildEngine := ABuildEngine;
|
||||||
FNotifyMainThreadEvent:=NotifyMainThreadEvent;
|
FNotifyMainThreadEvent:=NotifyMainThreadEvent;
|
||||||
|
Start;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
destructor TCompileWorkerThread.Destroy;
|
destructor TCompileWorkerThread.Destroy;
|
||||||
|
Loading…
Reference in New Issue
Block a user