mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-27 10:09:14 +02:00
Converter: Thread feature cleanup.
git-svn-id: trunk@28247 -
This commit is contained in:
parent
11ed939856
commit
972428939b
@ -970,20 +970,15 @@ function TConvertDelphiPBase.Convert: TModalResult;
|
|||||||
var
|
var
|
||||||
// The initial unit name cache is done in a thread so that GUI shows at once.
|
// The initial unit name cache is done in a thread so that GUI shows at once.
|
||||||
CacheUnitsThread: TCacheUnitsThread;
|
CacheUnitsThread: TCacheUnitsThread;
|
||||||
b: Boolean;
|
|
||||||
begin
|
begin
|
||||||
{$IFDEF UseCThreads}
|
|
||||||
ShowMessage('here we are!');
|
|
||||||
{$ENDIF}
|
|
||||||
IDEMessagesWindow.Clear;
|
IDEMessagesWindow.Clear;
|
||||||
// Start scanning unit files one level above project path. The GUI will appear
|
// Start scanning unit files one level above project path. The GUI will appear
|
||||||
// without delay but then we must wait for the thread before continuing.
|
// without delay but then we must wait for the thread before continuing.
|
||||||
CacheUnitsThread:=TCacheUnitsThread.Create(Self, fSettings.MainPath);
|
CacheUnitsThread:=TCacheUnitsThread.Create(Self, fSettings.MainPath);
|
||||||
try
|
try
|
||||||
b := CacheUnitsThread.FreeOnTerminate;
|
|
||||||
CacheUnitsThread.Resume;
|
CacheUnitsThread.Resume;
|
||||||
Result:=fSettings.RunForm; // Get settings from user.
|
Result:=fSettings.RunForm; // Get settings from user.
|
||||||
CacheUnitsThread.WaitFor; // Make sure the thread has finished.
|
CacheUnitsThread.WaitFor; // Make sure the thread has finished.
|
||||||
if Result=mrOK then begin
|
if Result=mrOK then begin
|
||||||
// create/open lazarus project or package file
|
// create/open lazarus project or package file
|
||||||
fLazPFilename:=fSettings.DelphiToLazFilename(fOrigPFilename, fLazPSuffix, false);
|
fLazPFilename:=fSettings.DelphiToLazFilename(fOrigPFilename, fLazPSuffix, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user