277 |
|
else if (q.thread != null && result == null) { |
278 |
|
try { |
279 |
|
ForkJoinPool.managedBlock(q); |
280 |
< |
} catch(InterruptedException ex){ |
280 |
> |
} catch (InterruptedException ex) { |
281 |
|
q.interruptControl = -1; |
282 |
|
} |
283 |
|
} |
310 |
|
if (nanos <= 0L) |
311 |
|
throw new TimeoutException(); |
312 |
|
long d = System.nanoTime() + nanos; |
313 |
< |
q = new WaitNode(true, nanos, d == 0L? 1L : d); // avoid 0 |
313 |
> |
q = new WaitNode(true, nanos, d == 0L ? 1L : d); // avoid 0 |
314 |
|
} |
315 |
|
else if (!queued) |
316 |
|
queued = UNSAFE.compareAndSwapObject(this, WAITERS, |
328 |
|
else if (q.thread != null && result == null) { |
329 |
|
try { |
330 |
|
ForkJoinPool.managedBlock(q); |
331 |
< |
} catch(InterruptedException ex){ |
331 |
> |
} catch (InterruptedException ex) { |
332 |
|
q.interruptControl = -1; |
333 |
|
} |
334 |
|
} |