1091 |
|
} |
1092 |
|
|
1093 |
|
/** |
1094 |
< |
* Returns the pool hosting the current task execution, or null |
1095 |
< |
* if this task is executing outside of any ForkJoinPool. |
1094 |
> |
* Returns the pool hosting the current thread, or {@code null} |
1095 |
> |
* if the current thread is executing outside of any ForkJoinPool. |
1096 |
> |
* |
1097 |
> |
* <p>This method returns {@code null} if and only if {@link |
1098 |
> |
* #inForkJoinPool} returns {@code false}. |
1099 |
|
* |
1100 |
|
* @return the pool, or {@code null} if none |
1098 |
– |
* @see #inForkJoinPool |
1101 |
|
*/ |
1102 |
|
public static ForkJoinPool getPool() { |
1103 |
|
Thread t = Thread.currentThread(); |