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

Comparing jsr166/src/test/loops/RLJBar.java (file contents):
Revision 1.7 by jsr166, Thu Apr 14 23:16:10 2011 UTC vs.
Revision 1.11 by jsr166, Sun Feb 22 04:38:58 2015 UTC

# Line 8 | Line 8
8   // adapted from bug reports
9  
10   import java.util.*;
11 import java.lang.*;
11   import java.util.concurrent.*;
12   import java.util.concurrent.locks.*;
13  
# Line 86 | Line 85 | class Producer extends Thread
85      }
86   }
87  
89
88   public class RLJBar                             // ProdConsTest
89   {
90  
# Line 105 | Line 103 | public class RLJBar
103      public static int quiesce = 0;
104      public static Condition EndCondition = End.newCondition();
105  
106 <    public static void main(String[] args)    {
106 >    public static void main(String[] args) {
107          int argix = 0;
108          if (argix < args.length && args[argix].equals("-o")) {
109              ++argix;
# Line 159 | Line 157 | public class RLJBar
157          System.out.println("Outer time: " + (System.currentTimeMillis()-cyBase));
158  
159          // Let workers quiesce/exit.
160 <        try { Thread.sleep (1000); } catch (Exception ex) {};
160 >        try { Thread.sleep (1000); } catch (Exception ex) {}
161      }
162   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines