1845 |
|
while ((r = result) == null) { |
1846 |
|
if (q == null) { |
1847 |
|
q = new Signaller(interruptible, 0L, 0L); |
1848 |
< |
ForkJoinPool.helpAsyncBlocker(defaultExecutor(), q); |
1848 |
> |
if (Thread.currentThread() instanceof ForkJoinWorkerThread) |
1849 |
> |
ForkJoinPool.helpAsyncBlocker(defaultExecutor(), q); |
1850 |
|
} |
1851 |
|
else if (!queued) |
1852 |
|
queued = tryPushStack(q); |
1888 |
|
while ((r = result) == null) { // similar to untimed |
1889 |
|
if (q == null) { |
1890 |
|
q = new Signaller(true, nanos, deadline); |
1891 |
< |
ForkJoinPool.helpAsyncBlocker(defaultExecutor(), q); |
1891 |
> |
if (Thread.currentThread() instanceof ForkJoinWorkerThread) |
1892 |
> |
ForkJoinPool.helpAsyncBlocker(defaultExecutor(), q); |
1893 |
|
} |
1894 |
|
else if (!queued) |
1895 |
|
queued = tryPushStack(q); |