ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/JSR166TestCase.java
(Generate patch)

Comparing jsr166/src/test/tck/JSR166TestCase.java (file contents):
Revision 1.76 by dl, Fri May 6 11:22:07 2011 UTC vs.
Revision 1.77 by jsr166, Fri May 6 17:26:29 2011 UTC

# Line 449 | Line 449 | public class JSR166TestCase extends Test
449       */
450      public static void delay(long ms) throws InterruptedException {
451          long startTime = System.nanoTime();
452 <        long ns = ms * 1000 * 1000;
452 >        long ns = ms * 1000 * 1000;
453          for (;;) {
454              if (ms > 0L)
455                  Thread.sleep(ms);
# Line 457 | Line 457 | public class JSR166TestCase extends Test
457                  Thread.yield();
458              long d = ns - (System.nanoTime() - startTime);
459              if (d > 0L)
460 <                ms = d / (1000 * 1000);
460 >                ms = d / (1000 * 1000);
461              else
462                  break;
463          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines