2
0
Эх сурвалжийг харах

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

git-svn-id: trunk@1671 -
Tomas Hajny 20 жил өмнө
parent
commit
69cc232b0b
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      rtl/os2/tthread.inc

+ 3 - 0
rtl/os2/tthread.inc

@@ -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;