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

Comparing jsr166/src/jsr166y/ForkJoinPool.java (file contents):
Revision 1.34 by jsr166, Fri Jul 31 20:17:52 2009 UTC vs.
Revision 1.37 by dl, Sun Aug 2 11:54:31 2009 UTC

# Line 81 | Line 81 | public class ForkJoinPool extends Abstra
81      private static final int MAX_THREADS =  0x7FFF;
82  
83      /**
84 <     * Factory for creating new ForkJoinWorkerThreads.  A
85 <     * ForkJoinWorkerThreadFactory must be defined and used for
86 <     * ForkJoinWorkerThread subclasses that extend base functionality
87 <     * or initialize threads with different contexts.
84 >     * Factory for creating new {@link ForkJoinWorkerThread}s.
85 >     * A {@code ForkJoinWorkerThreadFactory} must be defined and used
86 >     * for {@code ForkJoinWorkerThread} subclasses that extend base
87 >     * functionality or initialize threads with different contexts.
88       */
89      public static interface ForkJoinWorkerThreadFactory {
90          /**
# Line 578 | Line 578 | public class ForkJoinPool extends Abstra
578       * @throws NullPointerException if task is null
579       * @throws RejectedExecutionException if pool is shut down
580       */
581 <    public <T> void execute(ForkJoinTask<T> task) {
581 >    public void execute(ForkJoinTask<?> task) {
582          doSubmit(task);
583      }
584  
# Line 787 | Line 787 | public class ForkJoinPool extends Abstra
787       * Setting this value has no effect on current pool size. It
788       * controls construction of new threads.
789       *
790 <     * @throws IllegalArgumentException if negative or greater then
790 >     * @throws IllegalArgumentException if negative or greater than
791       * internal implementation limit
792       */
793      public void setMaximumPoolSize(int newMax) {
# Line 1735 | Line 1735 | public class ForkJoinPool extends Abstra
1735  
1736      /**
1737       * Interface for extending managed parallelism for tasks running
1738 <     * in ForkJoinPools. A ManagedBlocker provides two methods.
1738 >     * in {@link ForkJoinPool}s.
1739 >     *
1740 >     * <p>A {@code ManagedBlocker} provides two methods.
1741       * Method {@code isReleasable} must return {@code true} if
1742       * blocking is not necessary. Method {@code block} blocks the
1743       * current thread if necessary (perhaps internally invoking

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines