mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-01 10:02:33 +02:00
* WaitFor modified to call CheckSynchronize - to be tested with 3695
git-svn-id: trunk@1671 -
This commit is contained in:
parent
9b59f0675f
commit
69cc232b0b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user