Explorar o código

* Use ThreadSwitch.

git-svn-id: trunk@32076 -
yury %!s(int64=9) %!d(string=hai) anos
pai
achega
44777f3797
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      tests/test/tinterlockedmt.pp

+ 4 - 0
tests/test/tinterlockedmt.pp

@@ -123,7 +123,11 @@ begin
               writeln('InterLockedCompareExchange seems to be broken.');
               Halt(10);
             end;
+          {$ifdef FPC}
+            ThreadSwitch;
+          {$else}
             Sleep(0);
+          {$endif FPC}
           end;
           if FOption + 2 <> LastCompareVal then
             InterLockedIncrement(Counter3)