< prev index next >

jdk/src/java.base/share/classes/java/util/concurrent/ForkJoinTask.java

Print this page

        

*** 1299,1309 **** * transient, so a {@code null} result does not necessarily imply * quiescence of the pool. This method is designed primarily to * support extensions, and is unlikely to be useful otherwise. * * @return a task, or {@code null} if none are available ! * @since 1.9 */ protected static ForkJoinTask<?> pollSubmission() { Thread t; return ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) ? ((ForkJoinWorkerThread)t).pool.pollSubmission() : null; --- 1299,1309 ---- * transient, so a {@code null} result does not necessarily imply * quiescence of the pool. This method is designed primarily to * support extensions, and is unlikely to be useful otherwise. * * @return a task, or {@code null} if none are available ! * @since 9 */ protected static ForkJoinTask<?> pollSubmission() { Thread t; return ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) ? ((ForkJoinWorkerThread)t).pool.pollSubmission() : null;
< prev index next >