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 |
|
/** |
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 |