jdk/src/java.base/share/classes/java/util/concurrent/ForkJoinTask.java
changeset 35302 e4d2275861c3
parent 33674 566777f73c32
child 35981 e3e89c0bb3d9
equal deleted inserted replaced
35301:12dabfdd1997 35302:e4d2275861c3
  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;