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

Comparing jsr166/src/test/extra166y/FilterDemo.java (file contents):
Revision 1.3 by jsr166, Mon Sep 27 19:15:15 2010 UTC vs.
Revision 1.4 by dl, Thu Nov 25 12:38:35 2010 UTC

# Line 82 | Line 82 | public class FilterDemo {
82          }
83          int pass = 0;
84          int ps = 2;
85 <        ForkJoinPool fjp = new ForkJoinPool(ps);
85 >        ForkJoinPool fjp = new ForkJoinPool();
86          ParallelArray<Rand> pa = ParallelArray.createUsingHandoff(array, fjp);
87          for (;;) {
88              last = System.nanoTime();
# Line 111 | Line 111 | public class FilterDemo {
111                      ps >>>= 1;
112              }
113              //            pa.apply(nextRand);
114 <            fjp.setParallelism(ps);
114 >            //            fjp.setParallelism(ps);
115          }
116          fjp.shutdownNow();
117          fjp.awaitTermination(1, TimeUnit.SECONDS);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines