equal
deleted
inserted
replaced
1299 * transient, so a {@code null} result does not necessarily imply |
1299 * transient, so a {@code null} result does not necessarily imply |
1300 * quiescence of the pool. This method is designed primarily to |
1300 * quiescence of the pool. This method is designed primarily to |
1301 * support extensions, and is unlikely to be useful otherwise. |
1301 * support extensions, and is unlikely to be useful otherwise. |
1302 * |
1302 * |
1303 * @return a task, or {@code null} if none are available |
1303 * @return a task, or {@code null} if none are available |
1304 * @since 1.9 |
1304 * @since 9 |
1305 */ |
1305 */ |
1306 protected static ForkJoinTask<?> pollSubmission() { |
1306 protected static ForkJoinTask<?> pollSubmission() { |
1307 Thread t; |
1307 Thread t; |
1308 return ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) ? |
1308 return ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) ? |
1309 ((ForkJoinWorkerThread)t).pool.pollSubmission() : null; |
1309 ((ForkJoinWorkerThread)t).pool.pollSubmission() : null; |