lazbuild: comment

git-svn-id: trunk@57375 -
This commit is contained in:
mattias 2018-02-25 16:28:35 +00:00
parent 96d15f563f
commit b954691645

View File

@ -583,6 +583,7 @@ procedure TExternalTool.SetThread(AValue: TExternalToolThread);
var var
CallAutoFree: Boolean; CallAutoFree: Boolean;
begin begin
// Note: in lazbuild ProcessStopped sets FThread:=nil, so SetThread is not called.
EnterCriticalSection; EnterCriticalSection;
try try
if FThread=AValue then Exit; if FThread=AValue then Exit;
@ -598,7 +599,6 @@ begin
Application.QueueAsyncCall(@SyncAutoFree,0) Application.QueueAsyncCall(@SyncAutoFree,0)
else else
begin begin
// Note: lazbuild has Application=nil and frees threads via the main thread
debugln(['WARNING: (lazarus) TExternalTool.SetThread can not call AutoFree from other thread']); debugln(['WARNING: (lazarus) TExternalTool.SetThread can not call AutoFree from other thread']);
end; end;
end; end;