Explorar el Código

* tinterlockedmt: Minor improvement.

git-svn-id: trunk@32091 -
yury hace 10 años
padre
commit
3344188f3e
Se han modificado 1 ficheros con 4 adiciones y 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}