Explorar o código

* tinterlockedmt: Minor improvement.

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

+ 4 - 1
tests/test/tinterlockedmt.pp

@@ -129,7 +129,10 @@ begin
                 Halt(10);
               end;
               Sleep(1);
-            end;
+            end
+            else
+              if j >= 100 then
+                Sleep(0);
           {$ifdef FPC}
             ThreadSwitch;
           {$else}