Explorar o código

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

git-svn-id: trunk@1671 -
Tomas Hajny %!s(int64=20) %!d(string=hai) anos
pai
achega
69cc232b0b
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;