* WaitFor modified to call CheckSynchronize - to be tested with 3695

git-svn-id: trunk@1671 -
This commit is contained in:
Tomas Hajny 2005-11-06 01:53:48 +00:00
parent 9b59f0675f
commit 69cc232b0b

View File

@ -230,6 +230,9 @@ function TThread.WaitFor: Integer;
var
FH: cardinal;
begin
if GetCurrentThreadID = MainThreadID then
while not (FFinished) do
CheckSynchronize (1000);
WaitFor := DosWaitThread (FH, dtWait);
end;