299 |
|
|
300 |
|
/** |
301 |
|
* Awaits the phase of the barrier to advance from the given |
302 |
< |
* value, or returns immediately if this barrier is terminated |
302 |
> |
* value, or returns immediately if this barrier is terminated. |
303 |
|
* @param phase the phase on entry to this method |
304 |
|
* @return the phase on exit from this method |
305 |
|
*/ |
337 |
|
/** |
338 |
|
* Awaits the phase of the barrier to advance from the given value |
339 |
|
* or the given timeout elapses, or returns immediately if this |
340 |
< |
* barrier is terminated |
340 |
> |
* barrier is terminated. |
341 |
|
* @param phase the phase on entry to this method |
342 |
|
* @return the phase on exit from this method |
343 |
|
* @throws InterruptedException if thread interrupted while waiting |
431 |
|
} |
432 |
|
|
433 |
|
/** |
434 |
< |
* Returns true if this barrier has been terminated |
434 |
> |
* Returns true if this barrier has been terminated. |
435 |
|
* @return true if this barrier has been terminated |
436 |
|
*/ |
437 |
|
public boolean isTerminated() { |
567 |
|
|
568 |
|
/** |
569 |
|
* The number of times to spin before blocking in timed waits. |
570 |
< |
* The value is empirically derived |
570 |
> |
* The value is empirically derived. |
571 |
|
*/ |
572 |
|
static final int maxTimedSpins = (NCPUS < 2)? 0 : 32; |
573 |
|
|