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.5 by jsr166, Tue Mar 15 19:47:04 2011 UTC

# Line 1 | Line 1
1   /*
2   * Written by Doug Lea with assistance from members of JCP JSR-166
3   * Expert Group and released to the public domain, as explained at
4 < * http://creativecommons.org/licenses/publicdomain
4 > * http://creativecommons.org/publicdomain/zero/1.0/
5   */
6  
7   import jsr166y.*;
# 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