mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-29 23:29:31 +02:00
ExtTool: Restore one Enter-/LeaveCriticalSection. It is needed.
git-svn-id: trunk@64213 -
This commit is contained in:
parent
d5099bfbd4
commit
a9fe05f1eb
@ -2354,8 +2354,8 @@ var
|
||||
begin
|
||||
if csDestroying in ComponentState then exit;
|
||||
Changed:=false;
|
||||
//EnterCriticalSection; // Beware: Tool is already in critical section !!!
|
||||
//try
|
||||
EnterCriticalSection; // Beware: Tool is already in critical section
|
||||
try
|
||||
if (FPendingLines=nil) or (FPendingProgressLine=nil) then exit;
|
||||
//DebugLn(['TExtToolView.ProcessNewMessages START From=',FirstMsgLine,' To=',Tool.WorkerMessages.Count-1]);
|
||||
NewProgressLine:=nil;
|
||||
@ -2383,9 +2383,9 @@ begin
|
||||
PendingProgressLine.Msg:='';
|
||||
end;
|
||||
//debugln(['TExtToolView.ProcessNewMessages END Changed=',Changed,' Progress="',ProgressLine.Msg,'"']);
|
||||
//finally !!!
|
||||
// LeaveCriticalSection;
|
||||
//end;
|
||||
finally
|
||||
LeaveCriticalSection;
|
||||
end;
|
||||
|
||||
if Changed and Assigned(OnChanged) then begin
|
||||
// wake up main thread
|
||||
|
Loading…
Reference in New Issue
Block a user